> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Roles to Organization Members

> Learn how to add roles to Organization members using the Auth0 Dashboard or Management API.

Each [Organization](/docs/docs/manage-users/organizations/organizations-overview) 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](/docs/docs/manage-users/access-control/rbac).

You can assign two types of roles to Organization members:

* **Tenant roles**: Defined at the tenant level. You must [create the role](/docs/docs/manage-users/access-control/configure-core-rbac/roles/create-roles) before assigning it.
* **Organization roles**: Scoped to a specific Organization. You must [create the Organization role](/docs/docs/manage-users/access-control/configure-core-rbac/roles/create-roles#create-an-organization-role) before assigning it. To learn more, read [Organization Roles](/docs/docs/manage-users/organizations/organization-roles).

> [!WARNING]
>
> **The Organization Roles feature is in [Early Access](/docs/docs/troubleshoot/product-lifecycle/product-release-stages).**
>
> To participate, contact Auth0 Support.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

You can add roles to Organization members using either the Auth0 Dashboard (Auth0 Dashboard: Auth0's main product to configure your services.) or the Management API (Management API: A product to allow customers to perform administrative tasks.).

To enable a role for an Organization member, you must have already [created the role](/docs/docs/manage-users/access-control/configure-core-rbac/roles/create-roles) in your tenant.

## Auth0 Dashboard

To add roles to an Organization member via the Auth0 Dashboard:

1. Navigate to [Auth0 Dashboard > Organizations](https://manage.auth0.com/#/organizations), and select the Organization for which you want to configure membership.
2. Select the **Members** view, and select the name of the member to which you want to add a role.
3. Select **Assign** role.
4. Enter the role name(s) you want to assign to the member, and select **Add role(s) to organization**.

## Management API

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 Access Token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), user ID, and role ID, respectively.

Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.

**Find Your Auth0 Domain**

If 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. |
| `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `create:organization_member_roles`. |
| `USER_ID` | ID of the user to which you want to add the specified role(s). |
| `ROLE_ID` | ID of the role you want to add to the specified user for the specified Organization. Pass the ID of an Organization role to assign an Organization-scoped role.  Maximum of 50 roles per member. |

### Response status codes

| Status code | Error code | Message | Cause |
| - | - | - | - |
| `204` | | Roles successfully associated with user. | |
| `400` | `invalid_body` | Invalid request body. The message will vary depending on the cause. | The request payload is not valid. |
| `400` | `invalid_query_string` | Invalid request query string. The message will vary depending on the cause. | The query string is not valid. |
| `401` | | Invalid token. | |
| `401` | | Invalid signature received for JSON Web Token validation. | |
| `401` | | Client is not global. | |
| `403` | `insufficient_scope` | Insufficient scope; expected any of: `create:organization_member_roles`. | Tried to read/write a field that is not allowed with provided bearer token scopes. |
| `429` | | Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. | |

## Learn more

* [Organization Roles](/docs/docs/manage-users/organizations/organization-roles)
* [Create Roles](/docs/docs/manage-users/access-control/configure-core-rbac/roles/create-roles)
* [Remove Roles from Organization Members](/docs/docs/manage-users/organizations/configure-organizations/remove-member-roles)
* [Assign Roles for Enterprise Groups](/docs/docs/manage-users/access-control/configure-core-rbac/rbac-users/assign-roles-to-groups)
