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

# Assign Roles for Enterprise Groups

> Learn how to assign and remove roles for Enterprise Groups using the Auth0 Dashboard or Management API.

Auth0 allows you to assign and remove [roles](https://auth0.com/docs/manage-users/access-control/rbac.md) for SCIM (System for Cross-domain Identity Management (SCIM): A standardized protocol for provisioning and managing user identities and groups across systems.)-provisioned Enterprise Groups using the Auth0 Dashboard or Management API. When roles are assigned to a group, all members inherit those roles at log in. You can manage group roles at two scopes:

* **Organization Groups** — Enterprise Groups within a specific [Organization](https://auth0.com/docs/manage-users/organizations.md). Requires [Auto-Membership](https://auth0.com/docs/manage-users/organizations/configure-organizations/grant-just-in-time-membership.md) enabled on the enterprise connection for role inheritance to take effect.
* **Enterprise Groups** — Enterprise Groups scoped to your Auth0 tenant.

## Assign roles

### Organization Groups

Assign roles to SCIM-provisioned Enterprise Groups within an Organization. Enterprise Groups are synced from an enterprise identity provider (such as Okta or Microsoft Entra ID) via SCIM. When an Organization member logs in, they inherit any roles assigned to the Enterprise Groups they belong to.

The Organization's enterprise connection must have [Auto-Membership enabled](https://auth0.com/docs/manage-users/organizations/configure-organizations/grant-just-in-time-membership.md) for group role inheritance to take effect. To learn more about how Enterprise Groups are provisioned, read [Configure Inbound SCIM](https://auth0.com/docs/authenticate/protocols/scim/configure-inbound-scim.md#use-groups-with-organizational-roles).

You can assign both tenant roles and organization roles to enterprise groups within an organization. To learn more about organization roles, read [Organization Roles](https://auth0.com/docs/manage-users/organizations/organization-roles.md).

> [!WARNING]
>
> **The Organization Roles feature is in [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages.md).**
>
> 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).

> [tab] Dashboard
>
> 1. Go to [Dashboard > Organizations](https://manage.auth0.com/#/organizations) and select the Organization.
> 2. Select the **Groups** tab.
> 3. Select the group you want to assign roles to.
> 4. Select **Assign Roles**.
> 5. Search for and select the roles you want to assign, then select **Assign**.
>
> The assigned roles appear in the group's details. Both tenant roles and Organization roles scoped to this Organization are available for assignment.

> [tab] Management API
>
> Make a `POST` call to the [Assign Organization Group Roles](https://auth0.com/docs/api/management/v2.md) endpoint. You need the following information:
>
> | Parameter | Description |
> | - | - |
> | `org_id` | ID of the Organization. |
> | `group_id` | ID of the Enterprise Group. |
> | `role_id` | ID of the Organization role to assign. Repeat in the array to assign multiple roles at once. |
> | `YOUR_MGMT_API_ACCESS_TOKEN` | [Management API access token](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens.md) with the `create:organization_group_roles` scope. |
>
> > [tab] Auth0 CLI
> >
> > Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](https://auth0.com/docs/deploy-monitor/auth0-cli.md) before running this command.
> >
> > ```bash theme={null}
> > auth0 api post "organizations/{ORG_ID}/groups/{GROUP_ID}/roles" \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> > [tab] cURL
> >
> > ```bash wrap lines theme={null}
> > curl --request POST \
> >   --url 'https://{YOUR_AUTH0_DOMAIN}/api/v2/organizations/{ORG_ID}/groups/{GROUP_ID}/roles' \
> >   --header 'authorization: Bearer YOUR_MGMT_API_ACCESS_TOKEN' \
> >   --header 'content-type: application/json' \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> A successful request returns a `204 No Content` response.

### Enterprise Groups

Assign roles to SCIM-provisioned Enterprise Groups. When a role is assigned to a group, all members of that group inherit the assigned role when they log in.

To learn how Enterprise Groups are provisioned from an enterprise identity provider, read [Configure Inbound SCIM](https://auth0.com/docs/authenticate/protocols/scim/configure-inbound-scim.md).

> [tab] Dashboard
>
> 1. Go to [Dashboard > User Management > Enterprise Groups](https://manage.auth0.com/#/groups).
> 2. Select the group you want to assign roles to.
> 3. Select the **Roles** tab, then select **Assign Roles**.
> 4. Search for and select the roles you want to assign, then select **Assign**.
>
> The assigned roles appear in the group's **Roles** tab.

> [tab] Management API
>
> Make a `POST` call to the [Assign Roles to a Group](https://auth0.com/docs/api/management/v2.md) endpoint. You need the following information:
>
> | Parameter | Description |
> | - | - |
> | `group_id` | ID of the Enterprise Group. |
> | `role_id` | ID of the role to assign. Repeat in the array to assign multiple roles at once. |
> | `YOUR_MGMT_API_ACCESS_TOKEN` | [Management API access token](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens.md) with the `update:groups` scope. |
>
> > [tab] Auth0 CLI
> >
> > ```bash theme={null}
> > auth0 api post "groups/{group_id}/roles" \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> > [tab] cURL
> >
> > ```bash wrap lines theme={null}
> > curl --request POST \
> >   --url 'https://{YOUR_AUTH0_DOMAIN}/api/v2/groups/{group_id}/roles' \
> >   --header 'authorization: Bearer YOUR_MGMT_API_ACCESS_TOKEN' \
> >   --header 'content-type: application/json' \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> A successful request returns a `204 No Content` response.

## Remove roles

### Organization Groups

Remove roles from SCIM-provisioned Enterprise Groups within an Organization. Once a role is removed, Organization members in that group will no longer inherit it when they log in.

The Organization's enterprise connection must have [Auto-Membership enabled](https://auth0.com/docs/manage-users/organizations/configure-organizations/grant-just-in-time-membership.md) for group role inheritance to take effect.

> [tab] Dashboard
>
> 1. Go to [Dashboard > Organizations](https://manage.auth0.com/#/organizations) and select the Organization.
> 2. Select the **Groups** tab.
> 3. Select the group you want to update.
> 4. Locate the role you want to remove, then select the trash icon next to it.
> 5. Confirm the removal.
>
> The role no longer appears in the group's details.

> [tab] Management API
>
> Make a `DELETE` call to the [Delete Organization Group Roles](https://auth0.com/docs/api/management/v2.md) endpoint. You need the following information:
>
> | Parameter | Description |
> | - | - |
> | `org_id` | ID of the Organization. |
> | `group_id` | ID of the Enterprise Group. |
> | `role_id` | ID of the Organization role to remove. Repeat in the array to remove multiple roles at once. |
> | `YOUR_MGMT_API_ACCESS_TOKEN` | [Management API access token](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens.md) with the `delete:organization_group_roles` scope. |
>
> > [tab] Auth0 CLI
> >
> > ```bash theme={null}
> > auth0 api delete "organizations/ORG_ID/groups/GROUP_ID/roles" \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> > [tab] cURL
> >
> > ```bash wrap lines theme={null}
> > curl --request DELETE \
> >   --url 'https://{YOUR_AUTH0_DOMAIN}/api/v2/organizations/ORG_ID/groups/GROUP_ID/roles' \
> >   --header 'authorization: Bearer YOUR_MGMT_API_ACCESS_TOKEN' \
> >   --header 'content-type: application/json' \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> A successful request returns a `204 No Content` response.

### Enterprise Groups

Remove roles from SCIM-provisioned Enterprise Groups. Once a role is removed, group members will no longer inherit it when they log in.

> [tab] Dashboard
>
> 1. Go to [Dashboard > User Management > Enterprise Groups](https://manage.auth0.com/#/groups).
> 2. Select the group you want to update.
> 3. Select the **Roles** tab.
> 4. Locate the role you want to remove, then select the trash icon next to it.
> 5. Confirm the removal.
>
> The role no longer appears in the group's **Roles** tab.

> [tab] Management API
>
> Make a `DELETE` call to the [Remove Roles from a Group](https://auth0.com/docs/api/management/v2.md) endpoint. You need the following information:
>
> | Parameter | Description |
> | - | - |
> | `group_id` | ID of the Enterprise Group. |
> | `role_id` | ID of the role to remove. Repeat in the array to remove multiple roles at once. |
> | `YOUR_MGMT_API_ACCESS_TOKEN` | [Management API access token](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens.md) with the `update:groups` scope. |
>
> > [tab] Auth0 CLI
> >
> > ```bash theme={null}
> > auth0 api delete "groups/GROUP_ID/roles" \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> > [tab] cURL
> >
> > ```bash wrap lines theme={null}
> > curl --request DELETE \
> >   --url 'https://{YOUR_AUTH0_DOMAIN}/api/v2/groups/GROUP_ID/roles' \
> >   --header 'authorization: Bearer YOUR_MGMT_API_ACCESS_TOKEN' \
> >   --header 'content-type: application/json' \
> >   --data '{ "roles": [ "ROLE_ID" ] }'
> > ```
>
> A successful request returns a `204 No Content` response.

## Learn more

* [Organization Roles](https://auth0.com/docs/manage-users/organizations/organization-roles.md)
* [Configure Inbound SCIM](https://auth0.com/docs/authenticate/protocols/scim/configure-inbound-scim.md)
* [Grant Just-In-Time Membership to an Organization Connection](https://auth0.com/docs/manage-users/organizations/configure-organizations/grant-just-in-time-membership.md)
* [Add Roles to Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/add-member-roles.md)
* [Remove Roles from Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/remove-member-roles.md)
* [Remove Roles from Users](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/rbac-users/remove-roles-from-users.md)
* [View Roles Assigned to Users](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/rbac-users/view-user-roles.md)
