AZ_MG_GRANT_ROLE
Summary
FSProtect ACL Alias
AZ_MG_GRANT_ROLE
Entra ID (Azure AD) Alias
Grant Directory Roles (Microsoft Graph)
Affected Object Types
Directory Roles, Users, Groups, Service Principals (including role-assignable groups)
Exploitation Certainty
Certain
Graph Permission / Role
Application Permission: RoleManagement.ReadWrite.Directory. Delegated usage requires Privileged Role Administrator or Global Administrator
Description
AZ_MG_GRANT_ROLE represents the ability to grant Microsoft Entra directory roles via Microsoft Graph.
Capabilities:
Assign directory roles to users, groups, or service principals
Grant administrative control over the tenant
Establish persistence via role assignments to controlled identities
Required permissions:
RoleManagement.ReadWrite.DirectoryDelegated usage requires Privileged Role Administrator or Global Administrator
Identification
PowerShell (Microsoft Graph)
Find service principals with permissions to grant directory roles:
Azure GUI
Microsoft Entra admin center -> Roles & administrators
Open target role (e.g., Global Administrator, Privileged Role Administrator)
Check Assignments for users, groups, and service principals
Exploitation
PowerShell (Microsoft Graph)
Grant Application Administrator to a Service Principal:

Grant Global Administrator to a User:

Azure GUI
Microsoft Entra admin center -> Roles & admins
Select target role -> Add assignments
Search for and select the target principal -> Add
Mitigation
Minimize privileged role membership: Keep Global Administrator, Privileged Role Administrator assignments minimal
Use PIM: Prefer eligible assignments with time-bound activations and MFA
Remove unnecessary Graph permissions: Audit and remove
RoleManagement.ReadWrite.Directorywhen not requiredRegular access reviews for role assignments
Detection
PowerShell (Microsoft Graph)
Azure GUI
Microsoft Entra ID -> Audit logs -> Filter: Add member to role
References
https://learn.microsoft.com/en-us/graph/api/rbacapplication-post-roleassignments
https://learn.microsoft.com/en-us/graph/permissions-reference
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.identity.governance/new-mgrolemanagementdirectoryroleassignment
Last updated
Was this helpful?