1. Resources
  2. Identity Threats
  3. Microsoft Entra ID

Entra ID Directory Role Assignment Abuse

Also known as: Entra ID role assignment abuse, Global Administrator assignment, Role-assignable group abuse, Azure AD role escalation, Additional cloud roles

An identity that can manage role assignments, or the membership of a group that holds a role, gives Global Administrator or another privileged Entra role to an account it controls.

Platform
Microsoft Entra ID
Impact
Critical
Last updated
Attack difficulty
Low
Detection difficulty
Low
Privileges required: Specific rights or roles
Privileged Role Administrator or Global Administrator, an application with RoleManagement.ReadWrite.Directory, or ownership of a role-assignable group that holds a privileged role.
What the attacker gains
A privileged directory role, up to Global Administrator, on an identity the attacker controls: control of the tenant and a route into its Azure subscriptions.

How it works

A Microsoft Entra directory role is granted by a role assignment: a record that binds a principal (user, group or service principal) to a role definition at a scope. The scope is the whole tenant (/), an administrative unit, or a single application. Whoever can create that record decides who administers the tenant.

Privilege escalation through role assignment has three forms.

Direct assignment

The attacker holds an identity that is allowed to write role assignments and assigns a privileged role to an account they control. The authorities that can do this:

  • Global Administrator.
  • Privileged Role Administrator. Microsoft's description is explicit: the role manages assignments for all Entra roles including Global Administrator, and its holders can grant themselves or others additional privilege.
  • An application with RoleManagement.ReadWrite.Directory. Microsoft warns that this Graph permission lets an application grant additional privileges to itself, other applications or any user. See Graph application permission escalation.

Several other roles reach the same end in two steps, by taking over an identity that already holds a role, not by assigning one:

Role What it can do Path to a privileged role
Application Administrator, Cloud Application Administrator Manage all app registrations and enterprise applications Add a credential to an application that holds a privileged role or permission, then sign in as it
Application or service principal owner Manage the owned object The same, limited to the owned application
Privileged Authentication Administrator Set authentication methods for any user, administrators included Register a method for a privileged user and sign in as them
Authentication Administrator, Helpdesk Administrator, Password Administrator, User Administrator Reset passwords or methods for non-administrators and some limited administrators Take over an account that holds access through a group, an application or a scoped role

An identity that isn't called an administrator but can reach one this way is a shadow admin.

Role-assignable groups

A group created with isAssignableToRole set to true can be given a role, and every member then holds it. Microsoft protects these groups: the property can't be changed after creation, membership must be assigned and not dynamic, nesting isn't supported, and only Global Administrators, Privileged Role Administrators and the group's owners can manage membership. Changing the credentials of a member or owner needs Privileged Authentication Administrator.

The owner is the weak point. Microsoft allows membership management to be delegated by adding owners, and an owner can add themselves. An attacker who compromises the owner of a group that holds Global Administrator is one request away from the role, and the audit record says "Add member to group", not "Add member to role".

Scope tricks

The same role name can exist at different scopes. A User Administrator scoped to one administrative unit manages only the objects in it. Attacks on scope go two ways: adding a target object to a unit the attacker administers, or assigning a tenant-wide role where a scoped one was approved. Restricted management administrative units exist to stop the first: their members can be modified only by administrators assigned at that unit's scope. A Global Administrator or Privileged Role Administrator can still change the unit's membership or assign themselves a role scoped to it, and that is audited.

As persistence

The same write is a persistence technique. After compromising a tenant, an attacker assigns a privileged role to a second account, a guest, or a service principal that nobody watches, so that losing the first account doesn't end the access. Service principals are favored: they have no MFA, and their role assignments are rarely reviewed. Eligible assignments, which stay dormant until activated, are covered on the PIM abuse page.

Prerequisites

One of the following, on an identity the attacker controls:

  • Global Administrator or Privileged Role Administrator, active (not merely eligible).
  • A service principal credential for an application that holds RoleManagement.ReadWrite.Directory.
  • Ownership of a role-assignable group that holds a privileged role. For calls through Microsoft Graph, the application used also needs RoleManagement.ReadWrite.Directory; Group.ReadWrite.All isn't enough for these groups.
  • A role that can reset credentials of, or add credentials to, an identity that holds one of the above.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

The steps below are for an authorized assessment or a lab.

1. Find who holds what

# All role assignments: principal, role, scope
az rest --method get \
  --url "https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments"

# The role definition ID of Global Administrator
az rest --method get \
  --url "https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions?\$filter=displayName eq 'Global Administrator'&\$select=id,displayName"

# Groups that can hold roles, then the owners of one of them
az rest --method get \
  --url "https://graph.microsoft.com/v1.0/groups?\$select=id,displayName,isAssignableToRole" \
  --query "value[?isAssignableToRole]"
az rest --method get \
  --url "https://graph.microsoft.com/v1.0/groups/00000000-0000-0000-0000-000000000000/owners"

A principalId in the assignment list that resolves to a group means the role's real holders are that group's members, and its owners can change them.

2. Assign the role directly

With an identity that can write role assignments, create one at tenant scope. roleDefinitionId accepts the role's template ID or the tenant's definition ID:

az rest --method post \
  --url "https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments" \
  --body '{
    "@odata.type": "#microsoft.graph.unifiedRoleAssignment",
    "roleDefinitionId": "<role definition id>",
    "principalId": "<object id of the user, group or service principal>",
    "directoryScopeId": "/"
  }'

The same request with Microsoft Graph PowerShell:

Connect-MgGraph -Scopes "RoleManagement.ReadWrite.Directory"

$params = @{
    "@odata.type"    = "#microsoft.graph.unifiedRoleAssignment"
    roleDefinitionId = "<role definition id>"
    principalId      = "<object id>"
    directoryScopeId = "/"
}
New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params

A successful request returns 201 Created and the role is active immediately. To scope the assignment to an administrative unit, set directoryScopeId to /administrativeUnits/<id>.

3. Or add a member to a role-assignable group

As an owner of the group, add the controlled account. No role assignment is created or changed:

az rest --method post \
  --url "https://graph.microsoft.com/v1.0/groups/<group id>/members/\$ref" \
  --body '{"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/<object id>"}'

A 204 No Content response means the account is a member and holds every role assigned to the group.

4. Pick up the new role

Directory roles are carried in tokens, so the account signs in again, or refreshes its token, to act with the new role. From Global Administrator the attacker can reset any credential, change Conditional Access, consent to any application permission, and elevate access to manage every Azure subscription in the tenant.

Impact

Global Administrator is control of the tenant: every user, every application, every policy, mail and files through application permissions, and the Azure subscriptions through access elevation. Privileged Role Administrator and Privileged Authentication Administrator are equivalent in practice, because each can produce a Global Administrator. Lower roles assigned this way still give the attacker durable, legitimate-looking access that survives password resets of the account first compromised.

OPSEC and artifacts

  • A group is quieter than a role. Adding a member to a role-assignable group writes "Add member to group", an activity that occurs constantly in most tenants, and no "Add member to role" record. Reviews that list role assignments show the group and not its new member.
  • A service principal is quieter than a user. No MFA prompt, no risky-user evaluation of the same kind, and a name the attacker chooses to look like a Microsoft or vendor integration. The assignment record still names the target's type as ServicePrincipal.
  • Less famous roles draw less attention. Privileged Authentication Administrator or Application Administrator at tenant scope leads to Global Administrator without appearing on a "new Global Administrator" alert.
  • Assigning outside PIM stands out in a PIM tenant. Where roles are managed through Privileged Identity Management, a direct assignment is recorded as made outside PIM and PIM raises its own alert. Operators in such tenants use PIM's own requests instead.
  • Every write is audited. The directory audit log records the activity, the initiator (user or application), the target principal, the role and the result. The attacker can't suppress it. Entra ID keeps the log for 7 days on the free tier and 30 days with P1 or P2, which matters for assignments made long before discovery.
  • Removing the assignment later writes a removal record and doesn't erase the addition.

Detection

Role assignment activity with its targets:

AuditLogs
| where ActivityDisplayName in~ (
    "Add member to role",
    "Add scoped member to role",
    "Add member to role scoped over Restricted Management Administrative Unit",
    "Add member to restricted management administrative unit",
    "Add member to group")
| mv-expand Target = TargetResources
| project ActivityDateTime, Id, ActivityDisplayName, Result, CorrelationId,
          TargetType = tostring(Target.type), TargetId = tostring(Target.id),
          TargetName = tostring(Target.displayName), InitiatedBy
| order by ActivityDateTime asc

Filter the "Add member to group" rows to your role-assignable groups. Check InitiatedBy.user and InitiatedBy.app separately: an assignment made by an application is either automation you know or the escalation described above. Expanding targets multiplies rows, so count distinct Id values when counting events.

Mitigation

  • Keep permanent privileged assignments close to zero. Make roles eligible through Privileged Identity Management with approval and MFA on activation, and keep only emergency access accounts permanently active. See the PIM guide and the break-glass accounts guide.
  • Treat role-assignable group owners as role holders. Remove owners where possible so that only Privileged Role Administrators manage membership, or manage membership and ownership through PIM for Groups with approval. Review direct members on a schedule.
  • Don't assign privileged roles to service principals unless there is no alternative, and never grant RoleManagement.ReadWrite.Directory to an application that doesn't manage roles as its purpose.
  • Limit the takeover roles. Review who holds Application Administrator, Cloud Application Administrator, Privileged Authentication Administrator and the password and authentication administrator roles as carefully as Global Administrator. Scope them to administrative units where the work allows.
  • Protect sensitive accounts with restricted management administrative units, so that tenant-level helpdesk roles can't reset them.
  • Use cloud-only accounts for privileged roles, with phishing-resistant MFA, so that an on-premises compromise doesn't reach them.
  • Run access reviews on privileged roles and role-assignable groups, and alert on every assignment made outside PIM.
  • Export the audit log to a workspace with long retention. A role assigned as persistence is often found months later.

Detection rules for this attack

Log events to collect

FAQ

Who can assign Global Administrator in Entra ID?

Global Administrators and Privileged Role Administrators, and any application that holds the Microsoft Graph application permission RoleManagement.ReadWrite.Directory. Microsoft states that Privileged Role Administrator can manage assignments for all roles including Global Administrator, so holders can grant themselves or others any role.

Why is the owner of a role-assignable group a risk?

A role-assignable group passes its role to every member. By default only Privileged Role Administrators manage its membership, but Microsoft lets that be delegated by adding group owners. An owner can add any account, including their own, and that account then holds the group's role. Ownership of such a group is equal to holding the role and should be reviewed the same way.

Can a dynamic group or a nested group be given an Entra role?

No. Only groups created with isAssignableToRole set to true can hold a role, their membership type must be Assigned, and group nesting isn't supported. Microsoft added these limits so that changing a membership rule or a nested group can't grant a role indirectly.

Does a directory role give access to Azure subscriptions?

Not by itself. Directory roles and Azure RBAC are separate systems. The exception is Global Administrator, which can elevate access and become User Access Administrator at the root scope of Azure, and from there assign any Azure role. That step writes its own audit event.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.