How to get user permissions in SPA?

I successfully generated a SPA from the Quick start. Login/private routes, etc are working as expected.

Now how do I get user permissions in order conditionally render the UI? I have added roles/permissions users and a rule per this example.

Is this a common use case? I would think so but I can’t really find a clear answer wading through your docs.

Hi @panda,

yes, this question has been asked before.

Now how do I get user permissions in order conditionally render the UI?

RBAC only adds permissions to the access token, not ID token. However, you’d need it in the ID token, because only that one is meant to be parsed in the SPA client, the access token is not.

Therefore, see: