azure-mg-eff-owner
match (effective permission)
{
"action": "Microsoft.Authorization/roleAssignments/write",
"resource_type": "Microsoft.Management/managementGroups"
}
where
principal effectively holds Owner or User Access Administrator (or custom role with roleAssignments/write) at the MG scope
emit
| source type | Identity |
|---|---|
| target type | * |
| source | <principal> |
| target | <management group node> |
| permissions | Microsoft.Authorization/roleAssignments/write |
Narrative
{principal.name} can assign RBAC at management group {mg.name} (Owner / User Access Administrator).
Raw rule rules/explicit/azure-mgmtgroups.yaml
id: azure-mg-eff-owner
emits: HasPermission
applies_to:
- azure
match_effective_permission:
action: Microsoft.Authorization/roleAssignments/write
resource_type: Microsoft.Management/managementGroups
where:
- principal effectively holds Owner or User Access Administrator (or custom role with roleAssignments/write)
at the MG scope
emit:
source_type: Identity
target_type: '*'
source: <principal>
target: <management group node>
api_source: roleAssignments evaluation at MG scope (atScope + inherited from parents)
permissions:
- Microsoft.Authorization/roleAssignments/write
note: ONLY Owner and User Access Administrator hold roleAssignments/write. Contributor / Management
Group Contributor do NOT. Feeds derived azure-mg-roleassignment-write / azure-mg-owner-admin.
narrative: '{principal.name} can assign RBAC at management group {mg.name} (Owner / User Access Administrator).'