Interview Prep/Azure/Entra ID, RBAC and Identities

How do you list everything a principal can do in a subscription?

IntermediateConceptEntra ID, RBAC and Identities
Answer
# Direct and group-inherited assignments for a user at all scopes in the subscription
az role assignment list --assignee [email protected] --all --include-groups \
  --include-inherited -o table

# For a service principal or managed identity
az role assignment list --assignee <appId-or-objectId> --all -o table

--include-inherited pulls assignments from management groups above. For effective permissions on one resource, the portal's "Check access" blade shows the combined view, including deny assignments.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities