Planning Conditional Access Policies

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② 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:

  1. Which apps contain highly sensitive data (HR, Finance, Payroll)?
  2. Which apps are accessible by contractors or guests?
  3. Are there any legacy applications that do not support modern authentication?
  4. 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:

  1. Navigate to Protection > Conditional Access.
  2. Create a new policy named "Baseline: Require MFA for All Users."
  3. Under Users, select "All users." Crucial: Exclude your Global Admin emergency access accounts.
  4. Under Target resources, select "All cloud apps."
  5. Under Grant, select "Grant access" and check "Require multi-factor authentication."
  6. 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 be enabled, disabled, or enabledForReportingButNotEnforced.
  • includeUsers/excludeUsers: Defines the scope.
  • builtInControls: Specifies the requirements, such as mfa, compliantDevice, or domainJoinedDevice.

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

  1. Identity is the Perimeter: Move away from network-based security and focus on validating the identity, device, and context of every sign-in request.
  2. 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.
  3. Prioritize Emergency Access: Always exclude your break-glass accounts from Conditional Access policies to prevent catastrophic lockout scenarios.
  4. Adopt a Tiered Strategy: Build your security posture in layers, starting with baseline MFA, then adding device compliance, and finally risk-based adaptive policies.
  5. 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.
  6. Review and Refine: Conditional Access is an iterative process. Regularly audit your policies to remove outdated rules and adjust for changing business needs.
  7. 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.