Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 5 of 47
❮Prev Next❯

Interpret Access Assignments and Effective Access

Module 1: Identity & Governance ⏱ 10 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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.

    Simulate it » No Azure account needed

    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.

    Azure portal: Check access and read effective permissions Use Check access and read Contributor's NotActions.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    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
    1. In rg-app → Access control (IAM), stay on Check access. Select Check access and pick Ben.
    2. This is Ben's effective access here: every role at this scope and above, plus anything that comes through groups.
    3. 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.
    4. Open Roles → Contributor → View to read its permissions.
    5. Actions: \ minus NotActions. Contributor can do everything except manage access. That's why Ben can deploy but can't give anyone a role.
    6. 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.

    😟 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
    🛠️ Solved with: Check access and effective permissions

    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:

    1. Directly on RG1 to User1.
    2. Through groups User1 belongs to (including nested groups).
    3. Inherited from the subscription and every management group above it.
    4. 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

    ToolShows
    IAM → Check access → select a userCurrent role assignments (direct and via groups, with scope), deny assignments, eligible PIM assignments
    IAM → Role assignmentsEvery assignment at this scope; the Scope column says This resource or (Inherited)
    IAM → Roles → ViewThe role’s JSON permissions
    IAM → Deny assignmentsDeny assignments that apply here
    az role assignment list --assignee <upn> --all --include-inherited -o tableAll of a user’s assignments across scopes
    Get-AzRoleAssignment -SignInName <upn> -ExpandPrincipalGroupsIncludes 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. 1 Direct

      User1 has Reader at the management group: read only.

    2. 2 Group

      Group1 has Virtual Machine Contributor on RG2, and User1 is a member.

    3. 3 Union

      Reader + Virtual Machine Contributor includes virtualMachines/restart/action.

    4. 4 Blockers

      No deny assignment, no ReadOnly lock: the restart works.

    Can User1 restart vm-app01 in RG2?
    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

    Manufacturing

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    User1 has the Reader role at the subscription scope and the Contributor role on resource group RG1. A CanNotDelete lock exists at the subscription scope.

    Which actions can User1 perform in RG1?

    Question 2

    Question 2 of 5

    User1 is assigned the Reader role on RG1. User1 is also a member of Group1, which is assigned the Contributor role on RG1. What is the effective access of User1 on RG1?

    Question 3

    Question 3 of 5

    A custom role includes "Microsoft.Compute/*" in Actions and "Microsoft.Compute/virtualMachines/delete" in NotActions. User1 is assigned this custom role and the Virtual Machine Contributor role on the same resource group. Can User1 delete a virtual machine in the resource group?

    Question 4

    Question 4 of 5 · Select 2

    A user who has the Owner role on a resource group cannot delete a storage account in that resource group. Which two configurations could cause this? Each correct answer presents a complete solution.

    Question 5

    Question 5 of 5

    You need to view all role assignments for User1, including assignments inherited from parent scopes and assignments in every scope of the subscription, by using Azure CLI. Which command should you run?

    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. 1.Do role assignments add up or does the most restrictive win?Show

      They add up (union).

    2. 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. 3.Where in the portal do you see someone's effective access?Show

      Access control (IAM), Check access.

    4. 4.Which flag includes assignments from parent scopes in the CLI?Show

      --include-inherited

    5. 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

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.