Identity and Access Management Fundamentals Using Microsoft Entra ID
Master Identity and Access Management in Microsoft Entra ID. Learn to design, validate, and recover IAM workflows safely using first-principles and least privilege.

In this lesson
Table of Contents
Table of contents
Before you begin
- An isolated Microsoft Entra ID tenant or a dedicated non-production subscription.
- Global Administrator or Privileged Role Administrator permissions within the test tenant.
- A test user account with no existing privileged roles.
Track this tutorial
Choose your current status and tick each safety check as you complete it. Sign in to sync progress between devices.
Current status
Before you apply the change
Confirm these production-safety controls during the tutorial.
Identity and Access Management (IAM) serves as the foundational control plane for modern digital infrastructure, determining who or what can access specific resources under defined conditions. In cloud-native environments, the traditional network perimeter has dissolved, replaced by identity as the primary security boundary. Microsoft Entra ID
This guide establishes a mental model for IAM using Microsoft Entra ID, moving from theoretical concepts of trust and privilege to practical, safe implementation. We will examine the core components—tenants, identities, and conditional access policies—and demonstrate how to construct a bounded workflow that enforces least privilege. By focusing on observable success criteria and explicit rollback paths, practitioners can build confidence in their ability to manage identity securely without risking production stability. The emphasis remains on evidence-led practice, ensuring that every configuration change is validated against expected outcomes before being considered complete.
#Learning Objectives
- Define the core components of Microsoft Entra ID and their role in establishing trust boundaries.
- Apply the principle of least privilege when assigning roles and permissions to user identities.
- Configure a basic Conditional Access policy to enforce multi-factor authentication for a specific group.
- Validate the effectiveness of IAM controls through structured testing and evidence collection.
- Execute a safe rollback procedure if a configuration change inadvertently blocks legitimate access.
#Prerequisites
- An isolated Microsoft Entra ID tenant or a dedicated non-production subscription where changes will not impact live operations.
- Global Administrator or Privileged Role Administrator permissions within the test tenant to configure policies.
- A test user account with no existing privileged roles to serve as the subject of the IAM workflow.
- Access to the Microsoft Entra admin centre via a supported web browser.
- Familiarity with basic networking concepts and HTTP status codes to interpret authentication logs.
#Content
#The Mental Model: Identity as the Perimeter
In traditional on-premises networks, security relied heavily on firewalls
The core unit of trust in this system is the tenant. A tenant represents a single organisation’s instance of Microsoft Entra ID, containing all its users, groups, and applications. It is a secure boundary; data and identities do not flow freely between tenants unless explicitly configured through cross-tenant access settings. Within the tenant, every object has a unique identifier, ensuring that permissions are attached to specific entities rather than ambiguous names. This precision is vital for auditing and troubleshooting, as it allows administrators to trace exactly which identity was granted access and why.
#Core Components and Dependencies
Microsoft Entra ID relies on several interdependent components to function correctly. Users and groups form the basis of identity management, while applications represent the resources being protected. Roles define what actions an identity can perform within the directory itself, such as creating new users or resetting passwords. Conditional Access policies act as the decision engine, evaluating signals from the user and device to grant or deny access. These components do not operate in isolation; a change in one area, such as adding a user to a privileged group, can trigger new Conditional Access requirements or alter license assignments.
Understanding these dependencies is crucial for safe operation. For example, assigning a Global Administrator role bypasses many standard restrictions, including some Conditional Access policies, depending on the configuration. This dependency creates a risk where high-privilege accounts may not be subject to the same security controls as regular users, potentially creating a vulnerability if those accounts are compromised. Therefore, the principle of least privilege must be applied rigorously, ensuring that users have only the minimum permissions necessary to perform their jobs.

#Trust Boundaries and Cause-and-Effect
Trust boundaries in Microsoft Entra ID are defined by the scope of administrative control and the flow of authentication tokens. When a user signs in, they receive a token that proves their identity and contains claims about their attributes, such as group membership. This token is presented to applications, which trust the issuer (Microsoft Entra ID) to have verified the user. If the token is stolen or forged, the application may grant access to an attacker. Therefore, protecting the integrity of the token issuance process is paramount.
The cause-and-effect relationship in IAM is often non-linear. A simple change, such as enabling Multi-Factor Authentication (MFA) for a group, can have cascading effects on legacy applications that do not support modern authentication protocols. These applications may fail to connect, resulting in service disruptions. Anticipating these effects requires a thorough understanding of the application landscape and the authentication methods they support. Testing in a controlled environment allows administrators to observe these effects without impacting production services.
#Examples
#Worked Example: Assigning Least Privilege Roles
Consider a scenario where a help desk technician needs to reset passwords for standard users but should not have access to administrative accounts. Instead of assigning the Global Administrator role, which grants full control, we assign the Helpdesk Administrator role. This role is scoped to allow password resets for non-administrative users only. The expected evidence of success is that the technician can reset a standard user’s password but receives an ‘Access Denied’ error when attempting to reset a Global Administrator’s password. This outcome demonstrates the effective application of least privilege, limiting the potential damage if the technician’s account is compromised.
#Worked Example: Configuring Conditional Access
To protect sensitive financial data, we configure a Conditional Access policy that requires MFA for any user accessing the finance application from outside the corporate network. The policy targets the ‘Finance Users’ group and the ‘Finance App’ cloud app. The condition is ‘Location: Not Trusted IP’. The grant control is ‘Require multi-factor authentication’. When a finance user attempts to access the app from a home network, they are prompted for MFA. If they comply, access is granted. If they fail or decline, access is denied. The expected evidence is the sign-in log showing a ‘Success’ status with the detail ‘MFA required and satisfied’. This confirms that the policy is active and enforcing the desired security control.
#Exercises

#Exercise 1: Create a Test User and Assign a Role
Objective: Create a new user and assign them a specific administrative role, then verify the permissions.
Setup: Log in to the Microsoft Entra admin centre with Global Administrator privileges. Navigate to Users and create a new user named ‘TestAdmin’. Navigate to Roles and administrators, find the ‘User Administrator’ role, and add ‘TestAdmin’ as a member.
Expected Evidence: The ‘TestAdmin’ user appears in the list of members for the ‘User Administrator’ role. When logging in as ‘TestAdmin’, the user can create new standard users but cannot access billing information or delete other administrators.
Pass Condition: Successful creation of a user by ‘TestAdmin’ and failure to access billing pages.
Stop Condition: If ‘TestAdmin’ can access billing or delete administrators, stop immediately and review role assignments for errors.
Cleanup: Delete the ‘TestAdmin’ user and remove any created test users to maintain a clean environment.
#Exercise 2: Implement a Basic Conditional Access Policy
Objective: Create a policy that blocks access from a specific country to simulate geo-blocking.
Setup: Navigate to Protection > Conditional Access > Policies. Create a new policy named ‘Block Country X’. Assign it to ‘All Users’. Select ‘Cloud apps or actions’ and choose ‘All cloud apps’. Under Conditions, select ‘Locations’ and choose ‘Block’ for a specific country (e.g., a country where you have no business operations). Set Grant to ‘Block access’. Enable the policy in ‘Report-only’ mode first, then switch to ‘On’ after verifying the report data.
Expected Evidence: Sign-in logs show attempts from the blocked country being denied with the reason ‘Conditional Access policy blocked access’.
Pass Condition: No successful sign-ins from the blocked country while the policy is active.
Stop Condition: If legitimate users in other countries are blocked, disable the policy immediately and review the location configuration.
Cleanup: Delete the ‘Block Country X’ policy to prevent accidental blocking in future tests.
#Validation Guidance
Validating IAM configurations requires a systematic approach to ensure that security controls are functioning as intended without disrupting legitimate business processes. Start by reviewing the sign-in logs in Microsoft Entra ID, which provide detailed information about each authentication attempt, including the user, application, location, and status. Look for patterns of failures that might indicate misconfigured policies, such as a high volume of MFA failures for a specific group. Use the ‘What If’ tool in Conditional Access to simulate how a policy would apply to a specific user and context before enabling it. This tool helps identify potential conflicts or unintended consequences, such as blocking access for emergency accounts.
Operational checks should include verifying that break-glass accounts are excluded from all Conditional Access policies to ensure administrative access is always available in an emergency. Regularly review role assignments to identify any users who have accumulated excessive privileges over time, a phenomenon known as privilege creep. Use access reviews to periodically confirm that users still need their assigned roles. Finally, test the rollback procedure by intentionally triggering a failure condition, such as blocking your own access, and then using a break-glass account to restore service. This exercise ensures that the recovery path is viable and that the team is prepared for real incidents.
#Common Mistakes
- Over-scoping Conditional Access Policies: Applying strict policies to ‘All Users’ without excluding emergency access accounts can lock out administrators during an incident. Always exclude break-glass accounts from restrictive policies.
- Ignoring Legacy Authentication: Failing to block legacy authentication protocols (such as IMAP or POP3) leaves accounts vulnerable to password spray attacks, as these protocols often bypass MFA. Ensure legacy authentication is disabled unless specifically required by a documented business case.
- Assigning Permanent Privileged Roles: Granting permanent Global Administrator roles increases the attack surface. Use Privileged Identity Management (PIM) to assign eligible roles that require activation and justification, reducing the window of exposure.
- Neglecting to Test in Report-Only Mode: Enabling Conditional Access policies directly in ‘On’ mode can cause immediate service disruptions. Always start in ‘Report-only’ mode to analyse the impact on users before enforcement.
#Key Takeaways
- Identity is the new security perimeter; protect it with the same rigour as physical assets.
- Apply least privilege strictly, using specific roles rather than broad administrative permissions.
- Use Conditional Access to enforce dynamic security controls based on context, not just identity.
- Validate all changes in a non-production environment and use ‘Report-only’ mode for policies.
- Maintain viable rollback paths and break-glass accounts to ensure operational resilience.
#Production Bridge
Transitioning IAM practices from a lab environment to production requires careful planning and adherence to change control procedures. Before implementing any new policy or role assignment in production, document the business justification, the expected impact, and the rollback plan. Obtain approval from relevant stakeholders, including security and operations teams. Implement changes during maintenance windows to minimise disruption to users. Monitor sign-in logs closely after implementation to detect any unexpected failures or security anomalies. Use automation tools, such as Microsoft Graph API scripts, to manage role assignments and policy configurations consistently, reducing the risk of human error. Regularly audit access rights and update policies to reflect changes in the organisational structure and threat landscape. Remember that IAM is not a one-time setup but an ongoing process of verification and adjustment.
Related articles
Identity and Access Management
Learning Identity and Access Through a Safe Entra ID Lab
Design, implement and safely roll back one bounded Microsoft Entra ID identity and access management lab with clear validation and recovery steps.
Enterprise IT Management
Enterprise IT Management Guardrails for Microsoft 365
A technical guide to implementing secure, bounded management workflows for Microsoft 365, focusing on least privilege, validation, and recovery strategies for enterprise engineers.
DevOps & Automation
Reliability Checks for a Bounded GitHub Actions Deployment Workflow
How to design, validate and safely recover a bounded GitHub Actions deployment workflow, with explicit evidence, observable checks and a bounded rollback path.
Discover more
Graduate Learning
Ops Playbook
Lexicon Definitions
Learn More About KBY
About KBY
Learn about our mission, editorial standards, and commitment to trusted engineering knowledge.
Why Trust KBY
Explore the processes and policies that ensure our publications are accurate, useful, and responsible.
Newsletter
Get our latest editorial publications, research and practical insights sent directly to your inbox.
Was this useful?
Build practical engineering skills.
Receive new lessons, learning paths, practical exercises and early-career guidance.
Comments
Add a thoughtful note on Identity and Access Management Fundamentals Using Microsoft Entra ID. Comments are checked for spam and held for moderation before appearing.