How can I find out the roles and privileges of the logged in user?

Hello,
I need a list of roles and privileges that the logged in user has.
With this information, I plan to show and hide some screens in the administration panel.
The token is created after the user logs in. But I couldn’t find a way to find out what powers it has with this token.
Thank you for your help.

You can duplicate some logic if there are not many roles, and you save some effort by reusing UDFs (you can call UDFs within Role predicates). There is also a way to implement generic “CurrentRoles” and “HasRole” functions using some advanced FQL to set things up for your database.

Unfortunately, there is no out-of-the-box way to do this, though.

This existing topic goes into more detail. Please let us know if that helps or if you are still looking for something different.

1 Like

Thank you.

I will make custom solution for that.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.