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
- Go to Dashboard > User Management > Users and click the name of the user to view.
- Click the Roles tab.
Column | Description |
---|---|
Name | Name of the role from the role definition. |
Description | Description of the role from the role definition. |
Management API
Make aGET
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.
Value | Description |
---|---|
USER_ID | Τhe ID of the user for whom you want to get roles. |
MGMT_API_ACCESS_TOKEN | Access Token for the Management API with the scopes read:users and read:roles . |