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 →
- Assign the team group
Role Based Access Control Administratoron their RG with a condition limiting roles and principal types:
(the GUIDs are AcrPull and Key Vault Secrets User)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 - Test that assigning Owner fails and AcrPull succeeds
- 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".
More on Identity, Access and Governance
A new developer joins and needs to deploy to the dev resource group only. How do you give access?BeginnerYour GitHub Actions workflow uses a client secret stored in a repo secret. Security wants it gone. What do you do?BeginnerAuditors ask "who has Owner on production, and why?" How do you answer and fix it?IntermediateA VM application needs to read blobs from one container. How do you set up access without keys?IntermediateTeams keep creating resources in random regions and without tags. How do you stop it?BeginnerA contractor needs temporary read access to logs for two weeks. How do you handle it?Beginner