You can view the roles assigned to a user using Auth0’s Dashboard. This task can also be performed using the . The assigned roles are used with the API Authorization Core feature set.

Prerequisites

For role-based access control (RBAC) to work properly, you must enable it for your API using either the Dashboard or the Management API. The Authorization Core functionality is different from the Authorization Extension. For a comparison, read Authorization Core vs. Authorization Extension.

Dashboard

  1. Go to Dashboard > User Management > Users and click the name of the user to view.
  2. Click the Roles tab.
The following information is displayed for each role:
ColumnDescription
NameName of the role from the role definition.
DescriptionDescription of the role from the role definition.

Management API

Make a GET call to the Get User Roles endpoint. Be sure to replace USER_ID and MGMT_API_ACCESS_TOKEN placeholder values with your user ID and Management API , respectively.
curl --request GET \
  --url 'https://{yourDomain}/api/v2/users/USER_ID/roles' \
  --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN'
ValueDescription
USER_IDΤhe ID of the user for whom you want to get roles.
MGMT_API_ACCESS_TOKENAccess Token for the Management API with the scopes read:users and read:roles.

Learn more