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

# Create Roles

> Learn how to create a role using the Auth0 Dashboard or the Management API.

You can create [roles](/docs/docs/manage-users/access-control/rbac) using Auth0's Dashboard or the Management API (Management API: A product to allow customers to perform administrative tasks.). Roles work with the API Authorization Core feature set.

You can create two types of roles in Auth0:

* Tenant roles: Apply across your entire tenant and can be assigned to any user.
* Organization roles: Scoped to a specific organization. Users can hold different organization roles in each organization they belong to. 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).

## 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](/docs/docs/manage-users/access-control/authorization-core-vs-authorization-extension).
* [Set up an API](/docs/docs/get-started/auth0-overview/set-up-apis) in the Auth0 Dashboard (Auth0 Dashboard: Auth0's main product to configure your services.).
* Permissions come from predefined values. If your list of permissions is blank, you need to [add permissions](/docs/docs/get-started/apis/add-api-permissions) to your API.

## Create a tenant role

Tenant roles apply across an entire tenant and you can assign them to any user regardless of Organization membership.

> [tab] Auth0 Dashboard
>
> 1. Go to [Dashboard > User Management > Roles](https://manage.auth0.com/#/roles) and select **Create Role**.
> 2. Name the role and add a description, then select **Create**.

> [tab] Management API
>
> Make a `POST` call to the [Create Role endpoint](/docs/docs/api/management/v2/roles/post-roles). Be sure to replace `MGMT_API_ACCESS_TOKEN`, `ROLE_NAME`, and `ROLE_DESC` placeholder values with your Management API access token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), role name, and role description, 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.
>
> | **Value** | **Description** |
> | - | - |
> | `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `create:roles`. |
> | `ROLE_NAME` | Name of the role you want to create. |
> | `ROLE_DESC` | User-friendly description of the role. |

## Create an Organization role

You create Organization roles from within the Organization management view. Tenant admins can create up to 350 Organization roles per Organization.

> [tab] Auth0 Dashboard
>
> 1. Go to [Dashboard > Organizations](https://manage.auth0.com/#/organizations) and select the Organization.
> 2. Select the **Roles** tab, then select **Create Role**.
> 3. Enter a name and description for the role, then select **Create**.

> [tab] Management API
>
> Make a `POST` call to the [Create Role endpoint](/docs/docs/api/management/v2/roles/post-roles). Set `type` to `"organization"` and set `owner_id` to the Organization ID. Be sure to replace `MGMT_API_ACCESS_TOKEN`, `ROLE_NAME`, `ROLE_DESC`, and `ORG_ID` placeholder values with your Management API access token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), role name, role description, and Organization ID, respectively.
>
> > [tab] Auth0 CLI
> >
> > ```bash theme={null}
> > auth0 api post "roles" \
> >   --data '{ "name": "ROLE_NAME", "description": "ROLE_DESC", "type": "organization", "owner_id": "ORG_ID" }'
> > ```
>
> > [tab] cURL
> >
> > ```bash cURL theme={null}
> > curl --request POST \
> >   --url 'https://{yourDomain}/api/v2/roles' \
> >   --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
> >   --header 'cache-control: no-cache' \
> >   --header 'content-type: application/json' \
> >   --data '{ "name": "ROLE_NAME", "description": "ROLE_DESC", "type": "organization", "owner_id": "ORG_ID" }'
> > ```
>
> | **Value** | **Description** |
> | - | - |
> | `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `create:roles`. |
> | `ROLE_NAME` | Name of the Organization role you want to create. Must be unique within the Organization. |
> | `ROLE_DESC` | User-friendly description of the role. |
> | `ORG_ID` | ID of the Organization in which to create the role. |
>
> The response includes `type: "organization"` and `owner_id` confirming the role is organization-scoped.

## Learn more

* [Add Permissions to Roles](/docs/docs/manage-users/access-control/configure-core-rbac/roles/add-permissions-to-roles)
* [Remove Permissions from Roles](/docs/docs/manage-users/access-control/configure-core-rbac/roles/remove-permissions-from-roles)
* [Assign Roles to Users](/docs/docs/manage-users/access-control/configure-core-rbac/rbac-users/assign-roles-to-users)
* [Delete Roles](/docs/docs/manage-users/access-control/configure-core-rbac/roles/delete-roles)
