Learn how to add roles to Organization members using the Auth0 Dashboard or Management API.
Each organization member can be assigned one or more roles, which are applied when users log in through the organization. To learn more about roles and their behavior, read Role-based Access Control.You can add roles to members in organizations using either the or the .To enable a role for an organization member, you must have already created the role in your tenant.
To add roles to an organization member via the Management API:
Make a POST call to the Create Organization Member Roles endpoint. Be sure to replace ORG_ID, MGMT_API_ACCESS_TOKEN, USER_ID, and ROLE_ID placeholder values with your organization ID, Management API , user ID, and role ID, respectively.
Find Your Auth0 DomainIf your Auth0 domain is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus .auth0.com. For example, if your tenant name were travel0, your Auth0 domain name would be travel0.us.auth0.com. (If your tenant were in the US and created before June 2020, then your domain name would be https://travel0.auth0.com.)If you are using custom domains, this should be your custom domain name.
Value
Description
ORG_ID
ID of the organization for which you want to add roles to a member.