azureblog.co.uk
← cd ~/roles
// roles/azure · management-and-governance

Hierarchy Settings AdministratorAzure built-in role

Allows users to edit and delete Hierarchy Settings

Role ID350f8d15-c687-4448-8ae1-157740a3936d
CategoryManagement-and-governance
Actions2
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Management/managementGroups/settings/writeCreates or updates management group hierarchy settings.
Microsoft.Management/managementGroups/settings/deleteDeletes management group hierarchy settings.

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Hierarchy Settings Administrator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Hierarchy Settings Administrator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '350f8d15-c687-4448-8ae1-157740a3936d')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '350f8d15-c687-4448-8ae1-157740a3936d')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "350f8d15-c687-4448-8ae1-157740a3936d"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other management-and-governance roles

Find the smallest role for a task →