Hello Dwija,
I would strongly advise to not do this in the front end, because it basically pass by, or worse disable the security of mendix.
Is there no way you can make a solution where you can just create user roles like reader, creator, updater, deleter etc.
Good luck!
Add a bool value to the property on the entity and then use the custom column content