Interpret Access Assignments and Effective Access
30-second answer
A user's effective access at a scope is the sum of every role assigned to them and their groups, at that scope and every scope above it. Inside a role, permissions are Actions minus NotActions (and DataActions minus NotDataActions for data). NotActions is not a deny: another role can still grant the action. Only a deny assignment blocks an action regardless of roles, and you can't create those directly. Use Access control (IAM) → Check access in the portal, or az role assignment list --assignee <user> --include-inherited --all, to see the full picture. Locks still apply on top.
Exam objective: 1.2.3 Interpret access assignments. (Skills measured as of April 17, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
In <strong>rg-app → Access control (IAM)</strong>, stay on <strong>Check access</strong>. Select <strong>Check access</strong> and pick Ben.
👆 Click the glowing item in the portal to continue
Read the steps as text
- In rg-app → Access control (IAM), stay on Check access. Select Check access and pick Ben.
- This is Ben's effective access here: every role at this scope and above, plus anything that comes through groups.
- The Scope column tells you where each assignment lives. Inherited means it was made higher up. You can't remove it here; go to that scope.
- Open Roles → Contributor → View to read its permissions.
- Actions: \ minus NotActions. Contributor can do everything except manage access. That's why Ben can deploy but can't give anyone a role.
- Deny assignments win over role assignments. You can't create them yourself; Azure creates them for deployment stacks and managed applications.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Effective access
Roles add up. Owner does everything, Contributor everything except grant access, Reader only looks, and User Access Administrator only manages access. A deny assignment beats every role.
🤔 What happens if…
Read this tour as text
- Users and groups in your tenant. Your Microsoft Entra tenant holds users and groups. In an assigned group you add people yourself. In a dynamic group a rule such as
user.department -eq "Sales"adds and removes them as their properties change (Entra ID P1). - Licenses and guests. Group-based licensing gives every member of a group a license, and takes it back when they leave. A direct assignment needs the user's usage location first. A guest from a partner tenant signs in with their own account (B2B collaboration).
- Self-service password reset. SSPR lets users reset their own password at aka.ms/sspr. You choose who it's for (None, Selected group or All) and how many methods they must prove (1 or 2). Users must register methods before they can use them.
- The management ladder. Management groups sit above subscriptions, which hold resource groups, which hold resources. You can nest management groups six levels below the Tenant Root Group. Move a subscription and it takes on its new parent's policies and roles.
- Role assignments flow down. An Azure role assignment = who (user, group, service principal, managed identity) + role definition + scope. Assign it at a management group and it inherits to every subscription, resource group and resource below.
- Effective access. Roles add up. Owner does everything, Contributor everything except grant access, Reader only looks, and User Access Administrator only manages access. A deny assignment beats every role.
- Azure Policy: deny, audit, modify. Azure Policy checks what gets deployed. Deny refuses it, Audit lets it in but flags it non-compliant, Modify changes it (for example adds a tag) and needs a managed identity. A remediation task fixes resources that already exist.
- Locks and tags. A CanNotDelete lock lets people change a resource but not delete it. A ReadOnly lock blocks every write. Locks apply to everyone, Owners too. Tags on a resource group aren't inherited unless a policy copies them down.
- Budgets and Advisor. A budget watches spend for a scope and sends alerts at thresholds, on actual or forecasted cost, optionally to an action group. It doesn't stop anything by itself. Azure Advisor points at savings like idle VMs.
Ben needs to read everything in the company and manage one app. Put the subscription under a management group, give Ben Reader high up and Contributor low down, read his effective access, see what Contributor still can't do, and move a resource between resource groups.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
A developer says "I only have Reader" but just deleted a VM.
😊 THE SOLUTION
Check access: list every role, at every scope, through every group.
- Hidden inherited roles✓ Scope column shows Inherited
- Access through groups✓ Check access lists group roles
- Who can override roles?✓ Deny assignments win
Start with a question
If you have a library card and a museum pass, what are you allowed to do?
Both. A library card lets you borrow books, a museum pass gets you into the galleries, and having both doesn’t cancel either one. The only thing that stops you is a sign on a door that says “closed to everyone today”, whatever pass you hold.
Azure access works the same way. Every role a user has, directly or through groups, at this level or above, adds up. The “closed to everyone” sign is a deny assignment.
Explain it like I’m 10
The technical explanation
Four sources of access
To answer “what can User1 do on RG1?”, collect assignments from:
- Directly on RG1 to User1.
- Through groups User1 belongs to (including nested groups).
- Inherited from the subscription and every management group above it.
- Anything on a specific resource inside RG1 applies to that resource only.
Add all the roles together. That union is the effective access. Then check two things that can only take away: deny assignments and resource locks.
Reading a role definition
{
"roleName": "Contributor",
"actions": [ "*" ],
"notActions": [
"Microsoft.Authorization/*/Delete",
"Microsoft.Authorization/*/Write",
"Microsoft.Authorization/elevateAccess/Action",
"Microsoft.Blueprint/blueprintAssignments/write",
"Microsoft.Blueprint/blueprintAssignments/delete",
"Microsoft.Compute/galleries/share/action"
],
"dataActions": [],
"notDataActions": []
}
- Actions
*= every management operation. - NotActions removes role assignment and lock writes. That’s why Contributor can’t grant access or delete locks.
- DataActions is empty, so Contributor doesn’t get blob or queue data access through Entra ID. For that you need roles like Storage Blob Data Contributor.
NotActions only subtracts from this role. If the same person is also User Access Administrator, they can write role assignments.
Tools
| Tool | Shows |
|---|---|
| IAM → Check access → select a user | Current role assignments (direct and via groups, with scope), deny assignments, eligible PIM assignments |
| IAM → Role assignments | Every assignment at this scope; the Scope column says This resource or (Inherited) |
| IAM → Roles → View | The role’s JSON permissions |
| IAM → Deny assignments | Deny assignments that apply here |
az role assignment list --assignee <upn> --all --include-inherited -o table | All of a user’s assignments across scopes |
Get-AzRoleAssignment -SignInName <upn> -ExpandPrincipalGroups | Includes assignments through groups |
An inherited assignment can’t be removed at the child scope. Go to the scope where it was made.
Deny assignments
A deny assignment lists actions that are blocked for some principals at a scope, with optional excluded principals. They beat role assignments, Owner included. You can’t create them in IAM; Azure adds them for deployment stacks (deny settings) and Azure managed applications.
-
1 Direct
User1 has Reader at the management group: read only.
-
2 Group
Group1 has Virtual Machine Contributor on RG2, and User1 is a member.
-
3 Union
Reader + Virtual Machine Contributor includes virtualMachines/restart/action.
-
4 Blockers
No deny assignment, no ReadOnly lock: the restart works.
Architect level Why a role change didn't take effect
Azure Resource Manager caches some permission data, and tokens hold group claims, so a new assignment can take a few minutes to apply. Signing out and back in (or az logout / az login) refreshes the token. Very large group memberships can overflow token claims, in which case Azure looks them up instead, which is slower. If a removed role still seems to work, wait, refresh the token, and check for a second path through a group.
Real-world business scenario
Adatum Corporation (fictional)
- The problem
- A contractor with only the Reader role deleted a production database, and nobody could explain how.
- What they used
- Check access on the database's resource group showed Reader inherited from the management group, plus Contributor through a 'Legacy-Admins' group the contractor had been added to two years earlier. The activity log confirmed the delete.
- Why that choice
- The effective access view put every path in one list, so the team found the forgotten group in minutes instead of guessing.
- The result
- Legacy-Admins was removed, quarterly access reviews were set up for privileged groups, and production got CanNotDelete locks.
When to use it and when not to
✓ Use it when…
- Answering "what can this person do here?" before an audit or after an incident.
- Troubleshooting access denied errors or unexpected access.
- Reviewing whether a team still needs a role.
✕ Think twice when…
- Relying on one IAM list at one scope. Inherited and group assignments live elsewhere.
- Treating NotActions as a way to block someone who has other roles.
↔ Alternatives to consider
- Access reviews (Entra ID P2) for recurring checks of Azure role assignments.
- Azure Resource Graph queries over authorizationresources to report on assignments at scale.
Test yourself with exercises
5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner If someone has Reader on a subscription and Contributor on one resource group, what can they do in that resource group?
Model answer
Contributor things. Roles add up, so in that resource group they can read and change resources. Everywhere else in the subscription they can only read.
Intermediate Does NotActions deny an action?
Model answer
No. NotActions only removes permissions from that one role. If the user has a second role that grants the action, they can do it. The only thing that truly denies is a deny assignment.
Experienced developer A user says they're only a Reader but they deleted a VM. How do you investigate?
Model answer
I'd open Check access on the VM or its resource group and look at every assignment, including inherited ones from the subscription or management group and anything through group memberships. Then the activity log to confirm who did the delete and when. Nine times out of ten there's a group with Contributor they'd forgotten about.
Scenario An Owner can't delete resources in a resource group managed by a deployment stack. Why?
Model answer
The deployment stack has deny settings, which Azure enforces as a deny assignment. Deny assignments win over role assignments, Owner included. They'd need to change the stack's deny settings or be in its excluded principals.
Quick revision
Key points
- Effective access = all roles of the user and their groups, at this scope and above.
- Role permissions = Actions minus NotActions; data permissions = DataActions minus NotDataActions.
- NotActions isn't a deny. Another role can grant the same action.
- Deny assignments override role assignments. Azure creates them (deployment stacks, managed apps).
- Check access and az role assignment list --include-inherited show the full picture.
Important terminology
- Effective access
- Everything a principal can actually do at a scope, after adding up all its role assignments and applying deny assignments.
- Inherited assignment
- A role assignment made at a higher scope that applies here, shown with Inherited in the Scope column.
- Actions and NotActions
- Control-plane permissions a role grants, and the ones subtracted from that same role.
- DataActions
- Data-plane permissions, such as reading blob contents or sending messages, granted separately from management actions.
- Deny assignment
- A rule that blocks listed actions for principals at a scope even if a role grants them. Created by Azure, not by you.
- Check access
- The IAM tab that shows a principal's role assignments, group-based assignments and deny assignments at a scope.
Common mistakes
- Ignoring assignments that come through groups or from a management group.
- Assuming management roles (Contributor) can read data in storage. Data access needs DataActions roles.
Exam tips
- "Which roles does User1 have on RG1?" = add direct, group and inherited assignments.
- "Owner can't delete a resource" = look for a lock or a deny assignment.
- "Contributor can't read blobs with Entra ID auth" = needs Storage Blob Data Reader (DataActions).
Five quick revision questions
-
1.Do role assignments add up or does the most restrictive win?Show
They add up (union).
-
2.What's the only thing that blocks an action a role grants?Show
A deny assignment (or a resource lock, for write and delete).
-
3.Where in the portal do you see someone's effective access?Show
Access control (IAM), Check access.
-
4.Which flag includes assignments from parent scopes in the CLI?Show
--include-inherited
-
5.Can you create a deny assignment directly?Show
No. Azure creates them for features such as deployment stacks and managed applications.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Implement and Manage Azure Policy
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.