Skip to main content
You can enable role-based access control (RBAC) using the or the . This enables the API Authorization Core feature set. When RBAC is enabled, the scope claim of the includes an intersection of the requested permissions and the permissions assigned to the user, regardless of whether permissions are also included in the access token. When RBAC is disabled, an application can request any permission defined for the API, and the scope claim includes all requested permissions.
If you configure any Actions that modify access token scopes, they will override the scopes set by RBAC.

Dashboard

  1. Go to Dashboard > Applications > APIs and click the name of the API to view.
    Dashboard Applications APIs List
  2. Scroll to RBAC Settings and enable the Enable RBAC toggle.
    Auth0 Dashboard API Settings RBAC toggle
  3. To include all permissions assigned to the user in the permissions claim of the access token, enable the Add Permissions in the Access Token toggle, and click Save. Including permissions in the access token allows you to make minimal calls to retrieve permissions, but increases token size. Once you’ve enabled the Add Permissions in the Access Token toggle, Auth0 also updates your token dialect based on the access token profile you’ve set for the API:
    • If your token dialect is access_token, Auth0 updates it to access_token_authz, which is equivalent to the access_token profile with the permissions claim included.
    • If your token dialect is rfc9068_profile, Auth0 updates it to rfc9068_profile_authz, which is equivalent to the rfc9068_profile with the permissions claim included.
    To learn more about the available token dialects, read Token dialect options.

Management API

To enable RBAC using the Management API, make a PATCH request to the Update a resource server endpoint. In the PATCH request, set enforce_policies to true: Replace API_ID, MGMT_API_ACCESS_TOKEN, and TOKEN_DIALECT with their respective values, as shown in the following table:

Token dialect options

Auth0 supports the following token dialects:

Learn more