Getting user' roles claim in ID_Token as just roles, not namespaces/roles

Spent a lot of time reading helps, samples and other posts on similar topics in this forum. Can get namespace/roles as custom claims allright, but trying to see if can get same info without namespaces.

Feels like I’m missing something fundamental.

Help appreciated.

Michael

Hi @michael.zolotarev

Welcome to the Auth0 Community!

Thank you for posting your question. With OIDC-conformant tokens, Auth0 doesn’t allow a plain roles claim in the ID Token. If you include roles, they must be added as a custom, namespaced claim.

You can read more about restrictions here →

Thanks
Dawid

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