Lesson 3 of 3 Azure Role-Based Access Control

Working Out Effective Access in Azure

This lesson explains how Azure combines role assignments, deny assignments and other controls into a user's effective access, and how to inspect it.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how effective permissions are calculated from multiple role assignments.
  • Describe deny assignments and the tools that show a principal's access.
  • Distinguish between Azure roles and Microsoft Entra roles.

How effective access is calculated

Azure RBAC is additive. When a user makes a request, Azure Resource Manager collects every role assignment that applies: assignments to the user and to each group the user belongs to, at the resource's scope and every parent scope. The user's effective permissions are the union of those roles' actions minus their NotActions. If any applicable role grants the action, the request is allowed, unless a deny assignment blocks it.

Deny assignments block specified actions for specified principals and take precedence over role assignments. Administrators cannot create them directly; they are created by Azure features such as deployment stacks with deny settings and Azure managed applications. Resource locks and Azure Policy can also make an allowed operation fail, but they are separate mechanisms: the error message names the lock or the policy assignment.

The following diagram answers each part of an access exhibit that combines role assignments at different scopes with a resource lock.

Answering an access exhibit. User1 can restart VM1, because Virtual Machine Contributor at RG-Web grants restart and a CanNotDelete lock does not block updates. User1 cannot create a VM in RG-Data, where only the inherited Reader applies, and cannot delete VM1, because the lock blocks deletion even though the role allows it.
The scenario is illustrative.
Scenario questions

Is the request allowed?

Exam skills 1.2.3

Work out each user's effective access from the assignments that apply.

Log in to try this activity Interactive activities are free with an account.

Tools for interpreting access

On a scope's Access control (IAM) page, Check access shows the role assignments and deny assignments for a chosen user, group, service principal or managed identity at that scope, including inherited ones and those granted through groups. View my access shows your own. The Role assignments tab lists everything at the scope, grouped by role, with a Scope column showing This resource or the parent it is inherited from. The activity log records role assignment changes, and az role assignment list --assignee <user> --all --include-inherited lists assignments from the CLI.

Match the pairs

Finding out who has access

Exam skills 1.2.3

Match each question with the tool that answers it.

Log in to try this activity Interactive activities are free with an account.

Azure roles and Microsoft Entra roles

Azure RBAC roles and Microsoft Entra roles are separate systems. Microsoft Entra roles, such as Global Administrator, User Administrator and Groups Administrator, manage directory objects and are assigned in Microsoft Entra ID. An Owner of a subscription cannot create users, and a Global Administrator has no access to Azure resources by default. A Global Administrator can elevate access to receive User Access Administrator at the root scope, then assign Azure roles, which is the recovery path when no one has access to a subscription.

Sort into groups

Which role system?

Exam skills 1.2.3

Decide whether each task needs a Microsoft Entra role or an Azure role.

Log in to try this activity Interactive activities are free with an account.
Worked example

Reading an access exhibit

User1 is a member of Group1. Group1 has Reader at the subscription. User1 has Virtual Machine Contributor on resource group RG-Web. RG-Web has a CanNotDelete lock. Can User1 restart VM1 in RG-Web, create a VM in RG-Data, and delete VM1?

User1 can restart VM1, because Virtual Machine Contributor at RG-Web grants the restart action and the lock does not block updates. User1 cannot create a VM in RG-Data, because only Reader (inherited from the subscription) applies there. User1 cannot delete VM1: the role allows deletion, but the CanNotDelete lock on RG-Web blocks it for everyone.

Check yourself

Does a Global Administrator automatically have access to Azure subscriptions?

Show answer

No. Microsoft Entra roles do not grant Azure resource access; a Global Administrator must elevate access to receive User Access Administrator at the root scope.

Exam Tips

Remember for the exam

  • Effective access is the union of all role assignments at all parent scopes, including through groups.
  • Deny assignments override role assignments and are created only by Azure features.
  • Check access shows a principal's assignments and where each one comes from.
  • A Global Administrator must elevate access to manage Azure resources.