Overview
With shared roles, administrators in the owner organization of an organization group define a custom role once. Datadog provisions it into every member organization in the group. Use shared roles to keep role definitions consistent across organizations, instead of maintaining the same role in each one.
In each member organization, a shared role behaves like a Datadog managed role, except that the organization group manages it instead of Datadog. Member organization administrators assign the role to users and teams but cannot edit or delete it. Changes made at the group level propagate to every member organization, and organizations that join the group later receive the group’s shared roles.
To also stop member organizations from creating their own custom roles, set the group’s role exclusivity to Strict.
How shared roles work
In a member organization, shared roles appear on the Roles page with the type Group Managed. Other roles show the type Custom or Datadog Managed.
Shared roles are always Group Managed. Unlike organization group policies, they have no Override Allowed tier, so a member organization cannot change a shared role’s permissions for itself. To give one member organization a variation of a shared role, create a separate shared role. If role exclusivity is Flexible, the member organization can also clone the shared role into a custom role and edit the clone.
Role assignment stays with each member organization’s administrators. Administrators in the owner organization cannot assign roles to users in member organizations, or see which users in member organizations have a shared role.
If an organization leaves the group, its shared roles become regular custom roles.
Role exclusivity
Role exclusivity controls whether member organizations can create their own custom roles in addition to using the group’s shared roles. Set it in the Role Exclusivity section of the group’s Roles tab.
| Setting | Behavior in member organizations |
|---|
| Flexible | Member organizations can create, clone, and edit their own custom roles, and use shared roles. |
| Strict | Member organizations can use only shared roles and Datadog managed roles. Creating, cloning, and editing custom roles is blocked. |
When role exclusivity is Strict:
- Existing custom roles are frozen, not removed. They become read-only, and users and teams that have them keep their access. Member organization administrators can still assign them.
- Deleting custom roles stays available, because deleting a role only removes access.
- The restrictions also apply to the API and Terraform. Terraform applies that create or modify custom roles in member organizations fail.
- The owner organization is included if it is a member of its own group.
Switching a group back to Flexible lets member organizations create and edit custom roles again, including frozen ones.
Before you switch a group to Strict, create shared roles that cover the access member organizations need, and assign them to users and teams.
Manage shared roles
Manage shared roles from the Roles tab of an organization group in the owner organization.
Create a shared role
- In the owner organization, go to Organization Settings > Organization Groups.
- Select the organization group.
- Open the Roles tab.
- Click Add Role.
- Enter a name for the role.
- Select the permissions for the role. See Datadog Role Permissions.
- Save the role.
If a member organization already has a role with the same name, Datadog blocks the operation. See Resolve a role name conflict.
To start from an existing shared role, click Clone on that role in the Shared Roles list.
Edit or rename a shared role
- On the group’s Roles tab, find the role in the Shared Roles list.
- Click Edit.
- Change the name or the permissions.
- Save your changes.
Disable a shared role
Shared roles cannot be deleted, because deleting a shared role could cause users in member organizations to lose access unexpectedly. To stop managing a role from the group, disable it.
Disabling a shared role is permanent. You cannot re-enable a disabled shared role.
- On the group’s Roles tab, find the role in the Shared Roles list.
- Click Disable.
- Confirm your decision.
When you disable a shared role, Datadog does not delete it from member organizations. In each member organization, it becomes a regular custom role, and users and teams that have it keep their access. Like any other custom role, it is editable when role exclusivity is Flexible and frozen when it is Strict. The role no longer appears in the group’s Shared Roles list.
Move users to a shared role
Datadog does not move users from existing roles to shared roles. Assign a shared role in each member organization the same way as any other role:
Resolve a role name conflict
You cannot convert an existing custom role into a shared role. Datadog also does not take over an existing role that has the same name as a new shared role. To replace an existing custom role with a shared role:
- In a member organization that has the conflicting role, open the role on the Roles page and note its permissions. If the role exists in several member organizations with different permissions, decide which permissions the shared role grants.
- In the owner organization, create a shared role with those permissions and a different name, such as
<ROLE_NAME> (Shared). - In each member organization, assign the shared role to the users and teams that have the original role.
- In each member organization, delete the original custom role.
Further reading
Additional helpful documentation, links, and articles: