How to get user role information using social django

I’m using the social-app-django package for authentication and have it working.

How do I get user role information? When user data is retrieved from Auth0 it only contains email and picture, even though the user does have multiple roles assigned.

Any help would be much appreciated.

Thanks,
Chris

Hi @chris_decisioniq,

Welcome to the Auth0 Community Forum!

If you need the roles with the token they can be added. Example here:

Or they can be retrieved from the management api. Example here:

https://auth0.com/docs/api/management/v2#!/Users/get_user_roles

Hope this helps!

Thanks,
Dan

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