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.
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?BeginnerWhat is the difference between an app registration and a service principal?BeginnerWhat is a managed identity and what problem does it solve?BeginnerSystem-assigned vs user-assigned managed identity: when do you use each?IntermediateHow does Azure RBAC evaluate access?IntermediateName the core built-in roles and the difference between Owner, Contributor and User Access Administrator.Beginner