Planning Conditional Access Policies
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 9 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Planning Conditional Access Policies in Microsoft Entra ID
Introduction: The New Perimeter of Identity
In the traditional network security model, organizations relied on a "castle-and-moat" strategy. You secured the perimeter of your physical office, and once a user was inside that network, they were generally trusted. However, the rise of cloud computing, remote work, and mobile devices has rendered this approach obsolete. Today, the network perimeter is no longer a physical location; it is the user's identity.
Conditional Access (CA) is the tool Microsoft Entra ID (formerly Azure AD) uses to bring together signals to make decisions and enforce organizational policies. At its core, Conditional Access is an "if-then" engine. It asks: "If a user is trying to access a specific resource from an unknown location using an unmanaged device, then what should we do?" The answer might be to block access, grant access, or require additional proof of identity through multi-factor authentication (MFA).
Understanding how to plan these policies is critical for any identity administrator. Without a structured plan, you risk either locking legitimate users out of their work or, worse, leaving the front door wide open to attackers. This lesson will guide you through the philosophy, technical implementation, and strategic planning required to manage secure access effectively.
Not read yet
The Anatomy of a Conditional Access Policy
A Conditional Access policy consists of three main components: assignments (the "who," "where," and "what"), access controls (the "how"), and the policy state (whether it is active or in report-only mode). To plan successfully, you must dissect each of these components to ensure they align with your business requirements.
1. Assignments: Defining the Scope
Assignments determine which users, applications, and conditions trigger the policy. When planning, you must be extremely precise. If you apply a policy to "All Users" without excluding your emergency access (break-glass) accounts, you might accidentally lock your entire IT team out of the system.
- Users and Groups: You can target specific individuals, groups, or roles. Always prioritize the use of groups over individual users to make management easier as your organization scales.
- Target Resources: This includes cloud applications (like Office 365, Salesforce, or custom internal apps) or specific user actions (like registering security information).
- Conditions: This is where the real power lies. You can filter based on:
- Sign-in risk: Utilizing Entra ID Protection to identify compromised credentials.
- Device platforms: Targeting iOS, Android, Windows, or macOS.
- Locations: Using IP ranges or GPS-based geo-fencing.
- Client apps: Distinguishing between modern authentication (browsers) and legacy protocols (IMAP/POP3).
- Device state: Requiring that a device be marked as compliant by Microsoft Intune or joined to a hybrid domain.
2. Access Controls: Defining the Outcome
Once the conditions are met, the policy dictates the enforcement. There are two primary categories here:
- Grant Controls: These allow access, but often with conditions. For example, "Grant access, but require MFA," "Grant access, but require a compliant device," or "Grant access, but require a password change."
- Session Controls: These allow for limited experiences. For example, you can force a session to be restricted to a browser-only environment, or force a sign-in frequency requirement to ensure users re-authenticate every few hours.
Callout: Grant vs. Session Controls It is important to distinguish between granting access and controlling the session. A Grant control is the gatekeeper—it decides if the user can enter the application at all. A Session control, however, governs the behavior after the user has been granted entry, such as how long they can stay logged in or whether they can download files.
Not read yet
Step-by-Step Planning Process
Planning is not just a technical task; it is a business requirement gathering exercise. You cannot create effective policies if you do not know how your users work.
Phase 1: Inventory and Discovery
Before you write a single line of policy, you need to know what you are protecting. Create a spreadsheet listing your critical applications and the sensitivity of the data they hold. Ask yourself the following questions:
- Which apps contain highly sensitive data (HR, Finance, Payroll)?
- Which apps are accessible by contractors or guests?
- Are there any legacy applications that do not support modern authentication?
- What does a "normal" sign-in look like for our users in terms of location and device?
Phase 2: Design and Segmentation
Never create one massive "catch-all" policy. Instead, segment your policies by risk level. A common strategy is to use a tiered approach:
- Tier 1 (Baseline): Policies that apply to everyone (e.g., require MFA for all users on all apps).
- Tier 2 (Risk-Based): Policies that trigger only when unusual activity is detected (e.g., block sign-ins from high-risk locations).
- Tier 3 (Application-Specific): Strict policies for sensitive apps (e.g., require a managed, compliant laptop for access to the Finance portal).
Phase 3: The "Report-Only" Workflow
Microsoft Entra ID provides a "Report-only" mode for Conditional Access policies. This is the most important feature for an administrator. Before you enable a policy, set it to "Report-only." This allows the system to log what would have happened if the policy were active without actually blocking anyone.
Tip: The Power of Report-Only Mode Always run your policies in Report-only mode for at least 7 to 14 days. This covers a full business cycle, ensuring that users who work irregular hours or travel are not caught off-guard by a new restriction.
Not read yet
Practical Examples and Implementation
Let's look at how to implement common scenarios using the Microsoft Graph API or the Entra Admin Center. While the UI is often the starting point, understanding the structure is helpful for automation.
Scenario 1: Requiring MFA for All Users
This is the single most effective policy for preventing identity-based attacks.
Steps in the Entra Admin Center:
- Navigate to Protection > Conditional Access.
- Create a new policy named "Baseline: Require MFA for All Users."
- Under Users, select "All users." Crucial: Exclude your Global Admin emergency access accounts.
- Under Target resources, select "All cloud apps."
- Under Grant, select "Grant access" and check "Require multi-factor authentication."
- Set the policy to Report-only initially.
Scenario 2: Blocking Legacy Authentication
Legacy authentication protocols (like POP, IMAP, and SMTP) do not support modern MFA. Attackers love these protocols because they can bypass your security controls.
Policy Configuration:
- Users: All users.
- Target Resources: All cloud apps.
- Conditions: Under Client apps, select "Other clients."
- Grant: Block access.
This policy effectively shuts down the most common vector used for credential stuffing attacks.
Scenario 3: Device Compliance for Sensitive Apps
For apps like your ERP or Finance system, you may want to ensure that access only occurs from corporate-managed, healthy devices.
Policy Configuration:
- Users: Finance group.
- Target Resources: Select the Finance application.
- Conditions: Device platforms (all).
- Grant: Require "Device to be marked as compliant."
Not read yet
Common Pitfalls and How to Avoid Them
Even experienced administrators fall into traps with Conditional Access. Here are the most common mistakes and how to prevent them.
1. The "Lockout" Trap
The most common mistake is creating a policy that is too broad and failing to exclude an administrative account. If you enable a policy that requires MFA for all users, and you have an account that is not configured for MFA (like a service account or a break-glass admin), you will lose access.
- How to avoid: Always maintain at least two "break-glass" accounts. These are cloud-only accounts with Global Admin privileges that are excluded from all Conditional Access policies and have long, complex passwords stored securely offline.
2. Ignoring "What If" Testing
The "What If" tool in the Entra portal allows you to simulate a sign-in scenario. You can specify a user, an app, an IP address, and a device platform, and the tool will show you which policies would apply.
- How to avoid: Before saving any policy, navigate to the What If tab. Test a "successful" scenario (where a user should get in) and a "blocked" scenario (where a user should be restricted) to verify your logic.
3. Policy Overlap and Conflict
It is possible to have multiple policies that apply to the same user and app. If one policy grants access and another blocks it, the "Block" always wins. If two policies both require MFA, the user only has to perform it once.
- How to avoid: Keep your policy list clean. Use a naming convention that indicates the purpose and order of the policy (e.g.,
01_MFA_AllUsers,02_BlockLegacy,03_Finance_CompliantDevice).
Not read yet
Comparison Table: Common Conditional Access Strategies
| Strategy | Goal | Complexity | User Impact |
|---|---|---|---|
| Baseline MFA | Protect all identities | Low | Low |
| Legacy Auth Block | Prevent brute force | Low | Minimal |
| Geo-Blocking | Limit attack surface | Medium | Moderate |
| Device Compliance | Ensure health | High | High |
| Risk-Based Access | Adaptive security | High | Low |
Technical Deep Dive: JSON Representation
If you are using Infrastructure as Code (IaC) tools like Terraform or Bicep to manage your identity environment, you will interact with the JSON representation of these policies. Understanding the structure is essential for debugging.
{
"displayName": "Require MFA for All Users",
"state": "enabledForReportingButNotEnforced",
"conditions": {
"users": {
"includeUsers": ["All"],
"excludeUsers": ["guid-of-break-glass-admin"]
},
"applications": {
"includeApplications": ["All"]
}
},
"grantControls": {
"operator": "OR",
"builtInControls": ["mfa"]
}
}
Key elements of the JSON:
state: Can beenabled,disabled, orenabledForReportingButNotEnforced.includeUsers/excludeUsers: Defines the scope.builtInControls: Specifies the requirements, such asmfa,compliantDevice, ordomainJoinedDevice.
Not read yet
Best Practices for Long-Term Management
Conditional Access is not a "set it and forget it" system. Your organization will change, new applications will be added, and threat vectors will evolve.
1. Document Everything
Every policy should have a clear description in the portal. Explain why the policy exists. If you are blocking a country, state the business reason. This is vital when you are not the only one managing the identity stack.
2. Regular Audits
Review your policies at least every six months. Look for "stale" policies—rules that were created for a project that has ended or for an application that has been decommissioned. Use the Entra ID workbooks to see which policies are hitting the most users.
3. Monitoring and Alerting
Use Azure Monitor to send alerts when policies are triggered or when there is an unusually high number of blocked sign-ins. If you see a spike in blocks, it could indicate that a policy is too aggressive or that an attacker is testing your perimeter.
Warning: The Risk of Over-Blocking While it is tempting to block everything by default, be wary of "security fatigue." If your policies are too restrictive, users will find ways to bypass them, such as using personal devices for work or sharing credentials to avoid MFA prompts. Always balance security with productivity.
Not read yet
Addressing Common Questions
Q: Can I use Conditional Access to block specific countries? A: Yes. You can create a "Named Location" based on IP ranges or country/region. You can then use this in a policy to block access from specific locations. However, be careful, as VPNs and proxies can make users appear as if they are in a different country.
Q: What happens if a user is offline and cannot perform MFA? A: If a policy requires MFA and the user cannot complete it, access is denied. This is the intended behavior. For critical scenarios, ensure users have registered multiple authentication methods (like the Microsoft Authenticator app and a FIDO2 security key).
Q: Does Conditional Access work for non-Microsoft applications? A: Yes, provided those applications are integrated with Microsoft Entra ID via SAML, OIDC, or through the App Proxy. If an application is not integrated with Entra ID, it cannot be governed by Conditional Access.
Not read yet
Key Takeaways
- Identity is the Perimeter: Move away from network-based security and focus on validating the identity, device, and context of every sign-in request.
- Start with Report-Only: Never deploy a policy directly to production. Use the report-only mode to validate your logic and ensure you are not disrupting legitimate business workflows.
- Prioritize Emergency Access: Always exclude your break-glass accounts from Conditional Access policies to prevent catastrophic lockout scenarios.
- Adopt a Tiered Strategy: Build your security posture in layers, starting with baseline MFA, then adding device compliance, and finally risk-based adaptive policies.
- Leverage the "What If" Tool: Use simulation tools extensively during the planning phase to verify that your policies behave as intended for different user scenarios.
- Review and Refine: Conditional Access is an iterative process. Regularly audit your policies to remove outdated rules and adjust for changing business needs.
- Focus on User Experience: Security should be invisible when possible. Use session controls and risk-based triggers to ensure that users are only prompted for MFA when the situation warrants it, rather than at every single login.
By following these principles, you move from a reactive security posture to a proactive, identity-centric model. Conditional Access is the most powerful tool in the Entra ID toolkit; when planned with care, it provides a high-assurance security environment that supports both the agility of a modern workforce and the stringent requirements of modern data protection.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Creating a Microsoft 365 Tenant
- Creating a Microsoft 365 Tenant Quiz5q
- Implementing and Managing Domains
- Implementing and Managing Domains Quiz5q
- Configuring Organization Settings
- Configuring Organization Settings Quiz5q
- Monitoring Microsoft 365 Service Health
- Monitoring Microsoft 365 Service Health Quiz5q
- Configuring Network Connectivity Insights
- Configuring Network Connectivity Insights Quiz5q
- Managing Software Updates in Microsoft 365
- Managing Software Updates in Microsoft 365 Quiz5q
- Monitoring Microsoft 365 Adoption and Usage
- Monitoring Microsoft 365 Adoption and Usage Quiz5q
- Configuring Microsoft 365 Backup
- Configuring Microsoft 365 Backup Quiz5q
- Creating and Managing Users in Microsoft Entra ID
- Creating and Managing Users in Microsoft Entra ID Quiz5q
- Managing External Users and Guest Access
- Managing External Users and Guest Access Quiz5q
- Creating and Managing Contacts
- Creating and Managing Contacts Quiz5q
- Creating and Managing Microsoft 365 Groups
- Creating and Managing Microsoft 365 Groups Quiz5q
- Managing Shared Mailboxes
- Managing Shared Mailboxes Quiz5q
- Managing Microsoft 365 Licenses
- Managing Microsoft 365 Licenses Quiz5q
- Performing Bulk User Management with PowerShell
- Performing Bulk User Management with PowerShell Quiz5q
- Implementing Group-Based Licensing
- Implementing Group-Based Licensing Quiz5q
- Implementing Roles in Microsoft 365
- Implementing Roles in Microsoft 365 Quiz5q
- Managing Microsoft Entra ID Roles
- Managing Microsoft Entra ID Roles Quiz5q
- Managing Permissions for Microsoft Defender XDR
- Managing Permissions for Microsoft Defender XDR Quiz5q
- Managing Delegation with Administrative Units
- Managing Delegation with Administrative Units Quiz5q
- Managing Roles with Privileged Identity Management
- Managing Roles with Privileged Identity Management Quiz5q
- Managing Microsoft Purview Permissions
- Managing Microsoft Purview Permissions Quiz5q
- Preparing for Identity Synchronization
- Preparing for Identity Synchronization Quiz5q
- Using IdFix for Directory Cleanup
- Using IdFix for Directory Cleanup Quiz5q
- Implementing Microsoft Entra Connect Sync
- Implementing Microsoft Entra Connect Sync Quiz5q
- Implementing Microsoft Entra Cloud Sync
- Implementing Microsoft Entra Cloud Sync Quiz5q
- Monitoring with Microsoft Entra Connect Health
- Monitoring with Microsoft Entra Connect Health Quiz5q
- Troubleshooting Synchronization Issues
- Troubleshooting Synchronization Issues Quiz5q
- Implementing Authentication Methods
- Implementing Authentication Methods Quiz5q
- Implementing Self-Service Password Reset
- Implementing Self-Service Password Reset Quiz5q
- Implementing Microsoft Entra Password Protection
- Implementing Microsoft Entra Password Protection Quiz5q
- Investigating Authentication Issues
- Investigating Authentication Issues Quiz5q
- Configuring Passwordless Authentication
- Configuring Passwordless Authentication Quiz5q
- Planning for Identity Protection
- Planning for Identity Protection Quiz5q
- Implementing Microsoft Entra Identity Protection
- Implementing Microsoft Entra Identity Protection Quiz5q
- Planning Conditional Access Policies
- Planning Conditional Access Policies Quiz5q
- Implementing Conditional Access Policies
- Implementing Conditional Access Policies Quiz5q
- Implementing Multifactor Authentication
- Implementing Multifactor Authentication Quiz5q
- Configuring Named Locations
- Configuring Named Locations Quiz5q
- Understanding Microsoft Security Exposure Management
- Understanding Microsoft Security Exposure Management Quiz5q
- Managing Microsoft Secure Score
- Managing Microsoft Secure Score Quiz5q
- Reviewing and Responding to Incidents
- Reviewing and Responding to Incidents Quiz5q
- Using Advanced Hunting in Defender XDR
- Using Advanced Hunting in Defender XDR Quiz5q
- Reviewing Defender XDR Reports
- Reviewing Defender XDR Reports Quiz5q
- Using Microsoft Defender Threat Intelligence
- Using Microsoft Defender Threat Intelligence Quiz5q
- Configuring Custom Detection Rules
- Configuring Custom Detection Rules Quiz5q
- Implementing Threat Policies in Defender for Office 365
- Implementing Threat Policies in Defender for Office 365 Quiz5q
- Configuring Alert Policies
- Configuring Alert Policies Quiz5q
- Investigating Email and Collaboration Threats
- Investigating Email and Collaboration Threats Quiz5q
- Managing Attack Simulation Training
- Managing Attack Simulation Training Quiz5q
- Managing Restricted Entities
- Managing Restricted Entities Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Settings
- Configuring Endpoint Settings Quiz5q
- Using Vulnerability Management Dashboard
- Using Vulnerability Management Dashboard Quiz5q
- Responding to Endpoint Vulnerabilities
- Responding to Endpoint Vulnerabilities Quiz5q
- Managing Automated Investigation and Remediation
- Managing Automated Investigation and Remediation Quiz5q
- Configuring App Connector for Microsoft 365
- Configuring App Connector for Microsoft 365 Quiz5q
- Configuring Cloud Apps Policies
- Configuring Cloud Apps Policies Quiz5q
- Interpreting Activity Logs
- Interpreting Activity Logs Quiz5q
- Configuring Cloud App Discovery
- Configuring Cloud App Discovery Quiz5q
- Responding to Cloud App Discovery Issues
- Responding to Cloud App Discovery Issues Quiz5q
- Implementing Sensitive Information Types
- Implementing Sensitive Information Types Quiz5q
- Using Keywords and Regular Expressions
- Using Keywords and Regular Expressions Quiz5q
- Implementing Retention Labels and Policies
- Implementing Retention Labels and Policies Quiz5q
- Implementing Sensitivity Labels and Policies
- Implementing Sensitivity Labels and Policies Quiz5q
- Monitoring Label Usage with Content Explorer
- Monitoring Label Usage with Content Explorer Quiz5q
- Using Activity Explorer and Label Reports
- Using Activity Explorer and Label Reports Quiz5q
- Configuring Auto-Labeling Policies
- Configuring Auto-Labeling Policies Quiz5q
- Configuring DLP Policies for Exchange Online
- Configuring DLP Policies for Exchange Online Quiz5q
- Configuring DLP for SharePoint and OneDrive
- Configuring DLP for SharePoint and OneDrive Quiz5q
- Configuring DLP for Teams and Power BI
- Configuring DLP for Teams and Power BI Quiz5q
- Configuring DLP for Microsoft 365 Copilot
- Configuring DLP for Microsoft 365 Copilot Quiz5q
- Configuring Endpoint DLP
- Configuring Endpoint DLP Quiz5q
- Reviewing DLP Alerts and Events
- Reviewing DLP Alerts and Events Quiz5q
- Responding to DLP Reports
- Responding to DLP Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MS-102 exam-style practice questions.
Practice for MS-102