Back to Articles

Conditional Access: Zero-Trust Policy Design for Enterprise Identity

Contents

How Conditional Access Evaluates

Every policy has three parts — conditions (when it applies), grants (what the user must prove), and session controls (what happens to the session once access is granted).[1] The engine evaluates every sign-in and token request against every matching policy, and the mechanics that cause most of the pain are simple:

  • Conditions. Users and groups; workload identities (service principals); devices (registered, compliant, domain-joined); client IPs and named locations; target resources (the applications); client apps (browser, mobile, desktop, and the "other" class that covers legacy clients); and sign-in risk and user risk from your identity protection layer. A policy applies when its conditions match.
  • Grants. What the user must satisfy to get through: allow; MFA; device compliance; approved device; domain-joined, hybrid-joined, or registered device; accepted terms of use; app consent. Multiple grants can be combined — "MFA and compliant device" is a common, correct combination for sensitive applications.
  • Session controls. Applied after access is granted: sign-in frequency (re-authenticate every N hours), persistent browser (kill the browser session on sign-out), and token lifetime (access token and refresh token).[3] These bound how long and how sticky an approved sign-in stays — see the session controls section for the specifics.

Two evaluation mechanics deserve emphasis. First, if any matching policy denies access, access is denied — a policy you did not think was in scope can still fire because one of its conditions matched your user. Second, the order in which policies are evaluated affects which outcome applies when multiple policies match, and the vendor documents an evaluation order that has changed across releases. The design conclusion is not "learn the order" — it is "make the order irrelevant": each policy does exactly one job, its conditions are tight, and no two policies overlap on the same user-and-app combination.

A Recommended Starting Policy Set

Here is a starting set in the order you should build it — each policy does one job, and if a policy is doing two, split it. The order is a construction order (what to stand up first), not a claim about the engine's evaluation sequence:

#PolicyConditions (summary)Grant / action
1Block legacy authentication[4]All users; client apps = "other" (legacy clients)Block
2MFA baselineAll users (or a phased group); all cloud appsRequire MFA
3Device complianceAll users; sensitive apps (or all, once enrollment allows)Require compliant device (Intune) or hybrid-joined
4Registration nudgeAll users; all cloud appsRequire MFA registration and device registration
5Named-location exemptionUsers in a trusted named location; internal appsAllow without the device grant — MFA baseline stays
6Sensitive-app hardeningMail, file sharing, administrative portalsRequire MFA + compliant device
7Risk-basedSign-in risk at medium or higher (user risk at high, per your ITDR policy)Require MFA; block at high risk
8External usersGuest usersRequire MFA; restrict to named apps or locations

Two notes on the set. First, policies 1 and 2 are the floor — everything else layers on top of them, and they are the first two you should put in pilot mode[2], because they are also the two with the widest blast radius. Second, policy 5 (the named-location exemption) is the one that keeps you from locking out your own datacenter and your own helpdesk: internal applications, from the internal network, do not need a compliant-device grant — but they still require MFA, because "internal network" is not a security boundary and never was. The exemption narrows the device requirement; it does not narrow the authentication requirement.

Conditional Access policies are not an ordered firewall rule list. Entra evaluates every enabled policy that applies to the sign-in, then combines the grant and session requirements. Confirm which conditions and controls your tenant and licenses expose, and use the What If tool and report-only results to explain the combined outcome before enforcement.

Exclusions That Bite You Back

Every Conditional Access deployment needs some exclusions, and every exclusion is a hole that has to be consciously accepted. The ones that reliably come back to bite:

  • The app-exclusion trap. Excluding an application from the MFA policy means a user can sign in to that application without MFA — and the session token obtained there (the refresh token) can be reused against other applications that share the same trust. An app exclusion is, in practice, an MFA bypass for the estate. If an application genuinely cannot do MFA, the fix is modernizing its authentication, not a permanent exclusion. If you must exclude, scope it to the smallest group and the smallest app set, and give the exclusion an expiry date.
  • Service principals and workload identities. A service principal is the identity an application or a script signs in as, with no human at the keyboard — the account your backup job or your reporting integration authenticates with. Conditional Access does not govern one the way it governs a user: the policies you wrote for people simply do not apply to it, because workload identities are matched by their own separate condition rather than by the user condition. The reflex "block all service principals" is wrong (it breaks your integrations), but the opposite reflex — excluding all workload identities from every policy — is the hole: stolen workload credentials are a real attack path, and an excluded service principal is evaluated by no policy you have written. The pattern is to scope workload-identity policies deliberately (which service principals, which apps, which grant) rather than to exclude them wholesale.
  • The admin break-glass account. You will have a break-glass administrator excluded from automated disable — and often, by accident, from MFA. That account is a standing target with standing privileges. The discipline: exclude it from the auto-disable policy (so a false positive cannot lock you out), keep it inside the MFA baseline, rotate its credentials on a schedule, and treat every sign-in with it as an incident-grade event in your logs.
  • The "exclude admins" reflex. Excluding the entire administrator group from device compliance or MFA on the theory that admins know what they are doing is the single most common Conditional Access anti-pattern. Administrators are the highest-value target in the estate, not the lowest-risk one — and an admin laptop that is not compliance-checked is the path by which a compromised endpoint becomes a compromised domain.

The test for any exclusion: can you name the specific risk it mitigates, and the specific control that compensates for the hole it opens? If the answer is "it keeps the helpdesk tickets down," the exclusion is debt, not design.

Classic Lockout Failure Modes — and How to Avoid Them

The failure mode to engineer against is the estate-wide lockout: a policy that matches too broadly, with a grant the estate cannot satisfy. Four classic shapes, and the counter for each:

  • The condition matched more than you thought. "All users" includes guests, synchronization-only accounts, and the break-glass account. Counter: scope by group rather than "all users" until you have seen exactly who is in scope; review the matched user list before you flip a policy from pilot to enforcement.
  • The grant cannot be met. "Require compliant device" when half the fleet is not Intune-enrolled is a lockout for that half. Counter: check enrollment and compliance before the grant goes live — the device enrollment rate is the gating metric, not the policy. The policy is only as good as the enrollment behind it.
  • The order surprised you. Two policies matched, and the one that denied won. Counter: keep policies single-purpose with tight conditions so order does not matter; when in doubt, test with a small pilot group first and read the pilot report before widening.
  • No escape hatch. When the lockout happens, there is no fast path to restore access. Counter: a break-glass account outside the affected scope, documented, and actually tested — sign in with it once a quarter, on purpose — plus a written runbook for "disable policy X" that names the exact policy and the exact steps.

The process that catches most of these before they are incidents is pilot mode (the report-only evaluation): a policy in pilot evaluates and reports the outcome without enforcing it — you see exactly who would have been blocked or challenged, with no actual lockout. Run every new policy in pilot for a defined window — a week to a month depending on blast radius — read the "would have been denied" list, fix the scoping, and only then enforce. This is not optional caution; it is the difference between a lockout you discover at 2 a.m. on a Monday and a lockout you discovered in a pilot report on a Friday.

A Worked Example: Device Compliance with Intune

Device compliance plus Conditional Access for an Intune-managed estate. The portal clicks change; the shape does not:

  1. Enroll first. Devices must be Intune-managed (MDM-enrolled) before a compliance grant can be satisfied. Check the enrollment rate now; the policy you are about to write is only as strong as the enrollment behind it, and the gap between "enrolled" and "compliant" is where the first lockout hides.
  2. Write the compliance policy in Intune. The baseline Windows compliance policy, in shape (values illustrative — set the actual thresholds in the portal)[5]:
// Intune device compliance policy (Windows) — the shape, not a working paste
{
  "deviceEncryption": "requireDeviceEncryption",
  "osVersion":       "at least the current supported release",
  "antimalware":     "installed and up to date",
  "screenLock":      "required",
  "jailbroken":      "block"
}
  1. Write the Conditional Access policy. Same shape discipline — conditions tight, one grant, session control scoped to the apps where it matters:
// Conditional Access policy — the shape, not a working paste
{
  "displayName": "Require compliant device — sensitive apps",
  "conditions": {
    "users":  { "includeGroups": ["AllStaff"] },
    "apps":   { "includeApps": ["mail", "file sharing", "admin portal"] }
  },
  "grant": { "accessRequirements": ["compliantDevice"] },
  "sessionControls": { "signInFrequency": "re-auth every 10 hours" },
  "enforcementMode": "pilot"   // report-only; flip to enforce after review
}
  1. Run it in pilot, then enforce. Watch the pilot report: which users would be blocked, and why — not enrolled, not compliant, unknown device. Fix the enrollment and compliance gaps before flipping to enforcement, because the pilot report is the lockout list with the timing taken off.
  2. Verify the negative case. Sign in from a deliberately non-compliant test device and confirm the challenge appears. A policy that only works in the happy path is the one that surprises you in production — the test device is cheap, the incident is not.

Session Controls: Frequency, Persistent Browser, Token Lifetime

The grants decide whether a user gets in; the session controls decide how long and how sticky that access is. Three of them matter in practice:

  • Sign-in frequency. Re-authentication every N hours. For high-value applications, a short interval (a few hours) bounds the damage of a stolen session — the attacker has to re-pass MFA to keep moving. For standard applications, the default (per sign-in) is usually enough; the control is worth the user-experience cost only where the data justifies it.
  • Persistent browser. Removes the browser session (the refresh token) when the user signs out. This is the control for shared devices and helpdesk machines: "signed out" actually means signed out, and a stale token does not outlive the session it belonged to.
  • Token lifetime. Bounds the access-token and refresh-token lifetimes. The refresh-token lifetime is the lever that matters for session-hijack containment — a shorter refresh token means a stolen token expires sooner and forces re-authentication (and re-MFA) sooner. Note the interaction: token lifetime is also bounded by the application's own consent and supported lifetimes, so set it deliberately against what the target apps actually honor, not to an arbitrary minimum.

The pattern to adopt: session controls are scoped to sensitive applications, not the whole estate. A short sign-in frequency on the mail client and the admin portal is worth it; applied to every SaaS app it is a user-experience tax that buys little, and the tax is what gets session controls turned back off a year later.

Conditional Access Is a Layer, Not the Program

Conditional Access is the enforcement layer at sign-in and token issuance. Treating it as the whole zero-trust program is where programs stall — it does not, and cannot, do the work around it:

  • It does not manage identity. Who exists, what their attributes are, and whether they should exist at all — that is identity governance, and it is the input Conditional Access consumes. A Conditional Access policy set built on a sloppy identity base enforces its rules perfectly consistently against a directory whose contents are wrong — stale accounts nobody disabled, group memberships that no longer match anyone's job — so you get reliable decisions about the wrong facts.
  • It does not manage permissions. Conditional Access decides whether a user can sign in to an application; it does not decide what they can do inside it. That is application roles, Privileged Identity Management, and data scoping — a different plane of the same problem.
  • It evaluates at sign-in, not continuously. A user who passed Conditional Access at 9 a.m. keeps a valid session (bounded by session controls) — Conditional Access is not a continuous access-evaluation engine, and post-authentication data access is outside its scope.

Conditional Access does not cover these cases:

  • On-premises applications. Conditional Access only sees sign-ins that pass through the cloud identity provider (IdP) — Entra ID. An on-premises application that checks credentials itself, or against a domain controller directly, never asks Entra ID anything, so none of your policies are consulted and none of them fire. Those applications need their own enforcement — Network Policy Server for network access, single sign-on for on-premises web applications. Conditional Access cannot reach them, full stop.
  • Applications on other identity providers. An application that authenticates against a different IdP is outside Conditional Access evaluation entirely. Your policy set says nothing about it, because it is not in the trust domain.
  • Session hijack and post-authentication exfiltration. If an attacker steals a session token that Conditional Access already approved, they are inside the envelope the session controls define — the only thing limiting them is how long that session stays valid, not a fresh policy check. And once someone has legitimate access, copying data out is a different control's job: data loss prevention (DLP), which inspects and blocks the content on its way out, and data scoping, which limits what they could reach in the first place. Conditional Access bounds the window; it does not police what happens inside it.

Rule of Thumb: If your zero-trust roadmap is "turn on Conditional Access," it is not a roadmap — it is a control. Conditional Access is the layer that makes MFA, device compliance, and risk-based sign-in consistent across the estate, but the program is the identity governance, the device enrollment, the permission model, and the session management that the policies are enforcing. Budget and staff for the whole stack, not the policy toggle: the estates that get value from Conditional Access are the ones where the enrollment rate, the identity hygiene, and the permission model were already good enough for the policies to be true.


References

  1. Microsoft — "Microsoft Entra Conditional Access documentation": policy evaluation, conditions, grants, and session controls. Microsoft Learn, current.
  2. Microsoft — "Conditional Access pilot (report-only) mode": evaluating policy outcomes without enforcement. Microsoft Learn, current.
  3. Microsoft — "Conditional Access session controls": sign-in frequency, persistent browser, and token lifetime. Microsoft Learn, current.
  4. Microsoft — "Block legacy authentication with Conditional Access": the client-apps condition and the legacy-auth policy pattern. Microsoft Learn, current.
  5. Microsoft — "Intune device compliance policies for Windows": the compliance policy types that the compliant-device grant depends on. Microsoft Learn, current.
← Back to Articles ← Previous: Identity Threat Detection and Response with Entra ID Protection Next: External Identity →