azure-mg-eff-subscriptions-write

explicit azure emits HasPermission

match (effective permission)

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

emit

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

Narrative

{principal.name} can associate subscriptions with management group {mg.name}.

Raw rule rules/explicit/azure-mgmtgroups.yaml

id: azure-mg-eff-subscriptions-write
emits: HasPermission
applies_to:
- azure
match_effective_permission:
  action: Microsoft.Management/managementGroups/subscriptions/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/subscriptions/write
  note: Associate/move a subscription under an MG. Feeds derived azure-mg-move-sub-into-controlled-mg.
  narrative: '{principal.name} can associate subscriptions with management group {mg.name}.'
move · open · esc close