Add roles to the user from within the rules

Hi,
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 - #10 by ryantomaselli 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: http://community.auth0.com/t/how-do-i-add-user-permissions-to-id-token/28611

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.

Hey there!

As this topic is related to Rules - Hooks - Actions and Rules & Hooks are being deprecated soon I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

Learn more here!