Understanding Azure RBAC and Built-in Roles
This lesson explains the parts of a role assignment, how inheritance and additive access work, and how to choose a role.
Learning outcomes
After completing this lesson, you will be able to:
- Describe a role assignment and its scope.
- Explain how effective access is calculated.
- Compare Owner, Contributor, Reader and Role Based Access Control Administrator.
- Explain why Owner lacks data plane access.
The three parts of an assignment
A role assignment answers three questions: who, what and where. The security principal is who: a user, group, service principal or managed identity. The role definition is what: a collection of permissions. The scope is where: the level of the resource hierarchy at which the access applies.
Scopes form a hierarchy, and an assignment at one level is inherited by everything below it. The hierarchy runs from management group to subscription, resource group and resource. Giving a team Reader on a management group therefore gives them Reader on every subscription and every resource beneath it. Inheritance is convenient, but it is also how excess access spreads unnoticed, because a person may appear on no resource directly and yet have broad rights from above.
The following diagram shows the parts of an assignment and the scope hierarchy.

How effective access is calculated
Azure RBAC is additive. A principal's effective permissions are the union of all assignments that apply, whether direct, through a group or inherited. If one assignment gives Reader and another gives Contributor, the principal has Contributor.
There is one exception. A deny assignment blocks actions even when a role would allow them, and deny assignments take precedence. You cannot create a deny assignment directly in the usual way. Azure creates them for you, for example through a deployment stack with deny settings, or through Azure managed applications.
A role definition has separate fields for the control plane, Actions, and the data plane, DataActions. This explains why Owner of a storage account cannot read a blob with Microsoft Entra credentials until a data role, such as Storage Blob Data Reader, is also assigned. The Owner role has no data actions, although Owner can use account keys if Shared Key is allowed, or can assign the data role to themselves.
Effective access
The main built-in roles
Azure has hundreds of built-in roles, and four are fundamental. The following table shows them with their limits.
| Role | Manages resources | Grants access to others | Typical use |
|---|---|---|---|
| Owner | Yes | Yes | A very small number of accountable people |
| Contributor | Yes | No | Deployment identities, used with care |
| Reader | No, view only | No | Auditors and support staff |
| Role Based Access Control Administrator | No | Yes | Delegating access management, optionally with conditions |
Use a job-specific role whenever one exists. Virtual Machine Contributor, Network Contributor, Storage Account Contributor and Security Reader give narrower rights than Contributor. A role can also carry a condition. Role Based Access Control Administrator, for example, can be limited so that a person can assign only certain roles, or only to certain principal types. This allows delegation without giving away the ability to create more Owners.
Assignments should go to groups rather than individuals, so that joining or leaving a team changes access automatically and so that a single review covers many people. For a role that matters, use PIM so that the assignment is eligible rather than permanent.
Choosing a built-in role
Security roles in Defender for Cloud
Defender for Cloud uses Azure roles. Security Reader can view recommendations and alerts. Security Admin can also dismiss alerts and apply security policy. Owner and Contributor can remediate resources. It is common for an analyst to need Security Reader at a broad scope, and a resource team to need Contributor over its own resources, so that the people who find a problem are not always the people who fix it.
Assign a role with the following command, using a group's object ID. The values in capitals are placeholders.
az role assignment create --assignee-object-id GROUP_ID --assignee-principal-type Group \
--role "Virtual Machine Contributor" --scope /subscriptions/SUB_ID/resourceGroups/RGDelegating without granting Owner
An application team must be able to grant Storage Blob Data Reader on its own resource group to the managed identities of its applications. It must not be able to grant any other role, and it must not be able to change resources. What should you assign?
Assign Role Based Access Control Administrator at the resource group, with a condition that restricts the roles that can be assigned to Storage Blob Data Reader and the principal type to service principals. The team then manages access within a narrow boundary, and it has no rights to change resources.
Owner would allow any role assignment. User Access Administrator without a condition would also allow any role, which would include Owner. Contributor cannot create role assignments at all.
A user has Reader at the subscription and Contributor on one resource group. What is the access in that group?
Show answer
Contributor. RBAC is additive, so effective access is the union of assignments.
Exam Tips
Remember for the exam
- RBAC is additive, and only a deny assignment can subtract.
- Owner has no data plane rights by default.
- Contributor cannot grant access.
- Assign to groups, at the narrowest scope that works.