Interview Prep/Azure/Identity, Access and Governance

You need to let an app team create their own role assignments for their identities, without giving them Owner.

AdvancedScenarioIdentity, Access and Governance
Answer

Situation read → Delegated, constrained role assignment through an ABAC condition.

What I'd do →

  1. Assign the team group Role Based Access Control Administrator on their RG with a condition limiting roles and principal types:
    az role assignment create --assignee-object-id <teamGroupId> --assignee-principal-type Group \
      --role "Role Based Access Control Administrator" --scope <rgId> \
      --condition "((!(ActionMatches{'Microsoft.Authorization/roleAssignments/write'})) OR (@Request[Microsoft.Authorization/roleAssignments:RoleDefinitionId] ForAnyOfAnyValues:GuidEquals {7f951dda-4ed3-4680-a7ca-43fe172d538d, 4633458b-17de-408a-b874-0445c86b69e6}))" \
      --condition-version 2.0
    
    (the GUIDs are AcrPull and Key Vault Secrets User)
  2. Test that assigning Owner fails and AcrPull succeeds
  3. Document the allowed role list in the platform docs

Why → Teams self-serve the common grants, and escalation to Owner or Contributor is impossible.

Interview tip → Explaining conditional delegation separates senior answers from "just give them Owner".

Azure All Azure questions Roadmap: Azure core services

More on Identity, Access and Governance