Add "roles" to access token

Hello , we have requirement where underlying framework is accepting “roles” attribute from JWT Access token . As “roles” as a attribute in a custom claim is restricted in Auth0 , we have to use “namespace/roles” but underlying framework is not recognizing it , is there any workaround where we can attach “roles” as a attribute in aceess token .

Hi @rshah,

Welcome to the Auth0 Community!

Could you clarify if you added custom claims to your tokens like the following example?

You should be able to use a Post Login action to add roles to the access token as a custom claim.

If you are having issues with this, could you share your code?

Thanks,
Rueben