0Pricing
Cloud & IT Cert Prep · Lesson

Enterprise Identity and Access Design

Design a large-scale RBAC model using management groups, custom roles, and Privileged Identity Management to enforce just-in-time access for sensitive operations.

Enterprise Identity and Access Design is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Identity at Enterprise Scale

In enterprise Azure environments, identity and access management must scale to hundreds of subscriptions, thousands of users, and dozens of teams — all with different resource access needs. A well-designed identity model prevents both over-permissioning (users with too much access) and under-permissioning (users unable to do their jobs). The foundation is Microsoft Entra ID combined with Azure RBAC and governance tools like Privileged Identity Management (PIM).

RBAC Fundamentals Revisited

Azure Role-Based Access Control (RBAC) grants access through three components:

  • Security principal — who (user, group, service principal, or managed identity)
  • Role definition — what (a set of allowed actions, e.g., 'Contributor')
  • Scope — where (management group, subscription, resource group, or individual resource)

Combining these three elements creates a role assignment. Roles are inherited down the hierarchy — a role assigned at a management group applies to all subscriptions below it.

# Assign the Reader role at a management group level:
az role assignment create \
  --assignee 'user@company.com' \
  --role 'Reader' \
  --scope '/providers/Microsoft.Management/managementGroups/LandingZones'

Built-In vs. Custom Roles

Azure provides over 100 built-in roles covering common scenarios (Owner, Contributor, Reader, and service-specific roles). For most enterprise use cases, built-in roles are sufficient. However, when you need permissions that do not match any built-in role — for example, a role that can read VMs but cannot delete them — you can create a custom role with precisely the permissions needed, following the principle of least privilege.

# Create a custom role:
az role definition create --role-definition '{
  "Name": "VM Operator",
  "Description": "Can start and stop VMs but cannot create or delete them",
  "Actions": [
    "Microsoft.Compute/virtualMachines/start/action",
    "Microsoft.Compute/virtualMachines/powerOff/action",
    "Microsoft.Compute/virtualMachines/read"
  ],
  "NotActions": [],
  "AssignableScopes": ["/subscriptions/<subscription-id>"]
}'

Group-Based Access Assignment

Assign roles to Entra ID groups rather than individual users wherever possible. When you assign a role to a group, all members inherit the role. Adding or removing access is then a matter of adding or removing a user from the group — not modifying role assignments across multiple scopes. This greatly reduces administrative overhead and ensures access is consistent across team members who perform the same function.

# Create a group and assign a role to the group:
az ad group create \
  --display-name 'ProductionContributors' \
  --mail-nickname 'prod-contributors'

az role assignment create \
  --assignee '<group-object-id>' \
  --role 'Contributor' \
  --scope '/subscriptions/prod-subscription-id'

Privileged Identity Management (PIM)

Privileged Identity Management (PIM) is an Entra ID service that provides just-in-time (JIT) privileged access to Azure resources and Entra ID roles. Instead of having permanent Owner or Global Administrator access, users are eligible for privileged roles and must request activation when they need elevated access. Activation can require MFA, a justification, and approval by a designated approver.

# Workflow with PIM:
# 1. Security team makes 'alice@company.com' eligible for 'Owner' on prod subscription
# 2. Alice requests activation via PIM portal or myaccess.microsoft.com
# 3. Alice provides justification: 'Emergency patching for CVE-2026-1234'
# 4. Manager approves the request (optional step)
# 5. Alice receives Owner access for 4 hours, then access expires automatically
# 6. All activation events are logged in Entra ID audit logs

Benefits of PIM in Enterprise

PIM provides several security benefits for enterprise environments:

  • Reduced attack surface — no permanent admin accounts that could be compromised
  • Audit trail — every activation is logged with timestamp, justification, and approver
  • Access reviews — PIM supports periodic reviews where managers confirm which users should remain eligible
  • Time-limited access — even approved access expires automatically, preventing forgotten elevated permissions

Designing the RBAC Model

A well-designed enterprise RBAC model typically has these layers:

  • Management group level — broad viewer access for governance teams; policy assignments
  • Subscription level — team-level Contributor access for application teams who manage one subscription
  • Resource group level — service-specific roles (e.g., Storage Blob Contributor for an app that only needs blob access)
  • Resource level — only for exceptional cases where fine-grained control is needed

Service Principals and Managed Identities

Applications and automated processes should not use user accounts to authenticate to Azure. Instead, use:

  • Service principals — application registrations in Entra ID with a client ID and secret or certificate; used by CI/CD pipelines and on-premises automation
  • Managed identities — automatically managed credentials for Azure-hosted resources (VMs, App Service, AKS); no secrets to manage or rotate

Assign the minimum required RBAC roles to service principals and managed identities.

# Assign a role to a managed identity:
az role assignment create \
  --assignee-object-id '<managed-identity-object-id>' \
  --assignee-principal-type ServicePrincipal \
  --role 'Storage Blob Data Contributor' \
  --scope '/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.Storage/storageAccounts/<account>'

Conditional Access for Resource Access

Conditional Access policies in Entra ID add intelligence to authentication decisions. For Azure resource management, you can require that admin access (Azure portal, CLI) only be permitted from:

  • Compliant devices (managed by Intune)
  • Named locations (corporate network or VPN)
  • After MFA (always enforced for privileged actions)

Combining Conditional Access with PIM creates a very strong security posture for Azure administrative access.

Access Reviews

Entra ID Access Reviews allow administrators to periodically validate that users still need the access they have been granted. Reviews can be delegated to resource owners or managers, who answer 'Yes, this person still needs access' or 'No, remove this access' for each user. Access reviews can be scheduled quarterly and automate the removal of access that is no longer approved, preventing access creep over time.

Emergency Access Accounts

Every enterprise should maintain at least two emergency access (break-glass) accounts — Global Administrator accounts that are not protected by Conditional Access or MFA requirements (they use hardware FIDO2 keys instead). These accounts are used only when Entra ID or MFA systems are unavailable and normal admin accounts cannot be accessed. Emergency access account usage should trigger immediate security alerts and be audited rigorously.

Quick Check

Test your understanding of Microsoft Azure Fundamentals (AZ-900) concepts from this lesson.

Lesson Recap

In this lesson you learned: enterprise RBAC uses group-based assignments at management group, subscription, and resource group scope; Privileged Identity Management provides just-in-time access to eliminate permanent admin roles; and managed identities and service principals should be used for application authentication instead of user accounts. Congratulations — you have completed the enterprise architecture and governance section of the AZ-900 track!

Frequently asked questions

Is the “Enterprise Identity and Access Design” lesson free?

Yes — the full text of “Enterprise Identity and Access Design” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Enterprise Identity and Access Design”?

Design a large-scale RBAC model using management groups, custom roles, and Privileged Identity Management to enforce just-in-time access for sensitive operations. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Enterprise Identity and Access Design” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Cloud Adoption Framework Overview
  2. Azure Landing Zones
  3. Hub-and-Spoke Network Topology
  4. Enterprise Identity and Access Design
← Back to Cloud & IT Cert Prep