Add roles to the user from within the rules

I am trying to add user roles (not from the app_metadata but from the roles system) to the id_token.
I have found post: Accessing the permissions array in the access token which was stated as working, even if permissions are more deep than roles.

I am hitting 403 with missing scopes.

How can I manage to add the roles to the user id_token?
I am going to use Auth0 for OpenSource so I will not have access to M2M tokens.

1 Like

Hi @marek-urbanowicz,

Have you seen this post: How do I add user permissions to id token?

Please let me know if this is helpful.

1 Like

This is exactly what I am trying to do and I am hitting 403 - missing scopes.