How to read all role and permissoin for logged in user

Hi @mail4mithu,

Thanks for joining the Community! :slightly_smiling_face:

You can add the role/permissions to the ID Token or Access Token by using a custom claim in a Rule.

Here is a related topic that shows you how to add permissions to the ID Token: Accessing the permissions array in the access token - #10 by ryantomaselli

And here is how to add the user roles to tokens: Sample Use Cases: Rules with Authorization

Let me know if you have any questions about these examples!

Stephanie

1 Like