azure-mg-eff-write

explicit azure emits HasPermission

match (effective permission)

{ "action": "Microsoft.Management/managementGroups/write", "resource_type": "Microsoft.Management/managementGroups" }

emit

source typeIdentity
target type*
source<principal>
target<management group node>
permissionsMicrosoft.Management/managementGroups/write

Narrative

{principal.name} can write management group {mg.name} (create/rename/reparent).

Raw rule rules/explicit/azure-mgmtgroups.yaml

id: azure-mg-eff-write
emits: HasPermission
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Management/managementGroups/write
  resource_type: Microsoft.Management/managementGroups
emit:
  source_type: Identity
  target_type: '*'
  source: <principal>
  target: <management group node>
  api_source: roleAssignments evaluation at MG scope
  permissions:
  - Microsoft.Management/managementGroups/write
  note: Create/rename/reparent MGs. Held by Owner, Contributor, Management Group Contributor. Feeds derived
    azure-mg-reparent.
  narrative: '{principal.name} can write management group {mg.name} (create/rename/reparent).'
move · open · esc close