Conditional Access
Policy evaluation · assignments · conditions · grant and session controls · CAE · authentication context · protected actions · templates · testing
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
How a sign-in is evaluated
A Conditional Access policy is an if-then statement of Assignments and Access controls. Policies are enforced after first-factor authentication is completed.
- Several policies can apply to one user at the same time. All applicable policies must be satisfied: if one requires MFA and another requires a compliant device, the user must complete MFA and use a compliant device.
- Assignments inside one policy are combined with AND. If you configure more than one assignment, all of them must be satisfied to trigger the policy.
- Phase 1 collects session details, such as network location and device identity, for enabled policies and report-only policies. Phase 2 enforces: if a policy uses the block grant control, enforcement stops and the user is blocked.
- Unsatisfied grant controls are prompted in this order: MFA, compliant device, Microsoft Entra hybrid joined device, approved client app, app protection policy, password change, terms of use, custom controls. After all grant controls are satisfied, session controls are applied.
- Access tokens are issued by default if no policy condition triggers an access control. A policy that targets only the Finance group does nothing for users outside Finance. To stop them, add a separate policy that includes all users, excludes Finance, and blocks.
- When a user or group is both included and excluded, the exclude overrides the include.
- Policies that target roles or groups are evaluated only when a token is issued. Users who are newly added are not subject to the policy until they get a new token, and a token issued earlier is not affected retroactively. The best practice is to trigger evaluation at role or group activation with Privileged Identity Management.
| A policy must include | Detail |
|---|---|
| Name | A name for the policy |
| Assignments | Users and/or groups, and target resources |
| Access controls | Grant or Block |
Licence: Conditional Access needs Microsoft Entra ID P1. Risk-based policies (sign-in risk and user risk) need Microsoft Entra ID Protection, which is a Microsoft Entra ID P2 feature. When the licences expire, policies are not automatically disabled or deleted. You can view and delete them, but you can't update them.
Assignments and conditions
| Setting | What to know |
|---|---|
| Include users | None, All users (including B2B guests), or select users and groups: guest or external user types, directory roles, users and groups. |
| Directory roles | Built-in roles. Administrative unit-scoped roles and custom roles aren't supported. |
| Groups | If users or groups belong to more than 2048 groups, their access might be blocked. |
| Workload identities | Single tenant service principals in your tenant. Microsoft and third-party SaaS apps, including multitenant apps, and managed identities aren't covered. |
| Target resources | Cloud apps (All resources option), user actions, authentication context, and Global Secure Access traffic profiles. |
| Network | Any location, all trusted locations, all compliant network locations, or selected named locations. Policies apply to all locations by default. |
| Device platforms | Taken from unverified sources such as user agent strings. Use it with another policy or as part of a block statement. |
| Client apps | By default, new policies apply to all client app types. Legacy authentication clients don't support MFA or pass device state. |
| Filter for devices | Include or exclude devices with a rule expression on device properties. Can't be used together with device state, which is deprecated. |
- All resources without exclusions applies to all token requests from websites and services, including Global Secure Access traffic forwarding profiles.
- The Office 365 grouping targets the Microsoft 365 services at once, which avoids service dependency problems.
- The Windows Azure Service Management API app applies to Azure PowerShell, which calls Azure Resource Manager. It doesn't apply to Microsoft Graph PowerShell.
- Conditional Access policies don't apply to public clients themselves. They are based on the resources the client requests.
- User actions: Register security information and Register or join devices. Windows Hello for Business and device-bound passkeys aren't supported with register or join devices.
- Calls made by service principals aren't blocked by policies scoped to users. Use Conditional Access for workload identities.
- For a policy assigned to Exchange ActiveSync clients, Exchange Online should be the only cloud app assigned to it.
- To block unsupported platforms such as Chrome OS, use a Device platforms condition that includes any device, excludes the supported platforms, and blocks.
Named locations
| Rule | Value |
|---|---|
| Named locations (IP ranges) | No more than 195 |
| IP ranges per named location | No more than 2000 |
| IP range mask | Only CIDR masks greater than /8 |
| Trusted location | Can't be deleted until the trusted designation is removed |
- A user's location is determined from the public IP address or from GPS coordinates that the Microsoft Authenticator app provides.
- With a cloud-hosted proxy or VPN, Microsoft Entra ID evaluates the IP address of the proxy.
- The trusted IPs section of the MFA service settings isn't recommended.
Grant and session controls
| Grant control | What to know |
|---|---|
| Block access | Powerful control. Test with report-only mode and the What If tool. |
| Require MFA | Windows Hello for Business satisfies the requirement. |
| Require authentication strength | Built-in or custom strengths from Authentication methods > Authentication strengths. |
| Require compliant device | Device must be registered in Microsoft Entra ID. Windows 10+, iOS, Android, macOS and Linux Ubuntu devices enrolled with Intune. Edge InPrivate on Windows counts as noncompliant. |
| Require hybrid joined device | Domain-joined Windows down-level and Windows 10+ devices. Not supported with the device-code OAuth flow. |
| Require approved client app | The approved client app grant is retiring in early March 2026. |
| Require app protection policy | Needs a broker app on the device. |
| Require password change | Must be assigned to All resources, can't be combined with other controls, and users must already be registered for MFA. It doesn't use the SSPR flow. |
By default, multiple controls require all of the selected controls. You can instead choose one of the selected controls. With several policies, the validation order is MFA, device state, and then terms of use.
| Session control | What to know |
|---|---|
| Application enforced restrictions | Works only with Exchange Online and SharePoint Online. The app gives a limited experience on unmanaged or noncompliant devices, and a full one on managed and compliant devices. |
| Conditional Access App Control | Reverse proxy architecture integrated with Microsoft Defender for Cloud Apps. |
| Sign-in frequency | How long a user can stay signed in before a new prompt. Default is a rolling window of 90 days. Works with apps that use OAuth 2.0 or OIDC. |
| Persistent browser session | Lets users stay signed in after closing and reopening the browser. All tabs share one session token. |
| Customize continuous access evaluation | CAE is auto enabled as part of Conditional Access policies. |
| Disable resilience defaults | Resilience defaults extend access to existing sessions during an outage. If disabled, access is denied when existing sessions expire. |
| Token protection | Only device-bound sign-in session tokens, like Primary Refresh Tokens, are accepted. |
| Global Secure Access security profile | Brings identity and context awareness to Microsoft Entra Internet Access security profiles. |
- With sign-in frequency Every time, the system accounts for five minutes of clock skew, so users aren't prompted more often than once every five minutes.
- Before enabling sign-in frequency, make sure other reauthentication settings are disabled in your tenant.
- Microsoft Entra Private Access doesn't support sign-in frequency set to every time.
- On Microsoft Entra joined and hybrid joined devices, unlocking the device or signing in interactively refreshes the Primary Refresh Token every four hours.
- Any IT policy violation, such as a password change, a noncompliant device or a disabled account, revokes the session.
Continuous access evaluation (CAE)
By default, access tokens are valid for one hour. CAE lets Microsoft Entra and the resource provider talk to each other, so access can be revoked within minutes instead of waiting for the token to expire. The initial implementation focuses on Exchange, Teams and SharePoint Online.
| CAE scenario | Detail |
|---|---|
| Critical event evaluation | Doesn't rely on Conditional Access policies, so it is available in any tenant. Events: user deleted or disabled, password changed or reset, MFA enabled for the user, administrator revokes all refresh tokens, high user risk detected by ID Protection. |
| Conditional Access policy evaluation | Exchange Online, SharePoint Online, Teams and Microsoft Graph synchronize key policies, so users lose access immediately after a network location change. |
- CAE sessions use long-lived tokens, up to 28 hours. The configurable token lifetime policy isn't honored for CAE-aware sessions. Without CAE-capable clients the default access token lifetime stays 1 hour.
- The resource provider rejects a token with a claim challenge, and the client goes back to Microsoft Entra for a new token.
- CAE only has insight into IP-based named locations. It has no insight into MFA trusted IPs or country/region locations. In those cases a one-hour token is issued.
- When the sum of all IP ranges in location policies exceeds 5,000, CAE can't enforce the location change in real time.
- Policy and group membership changes can take up to one day to be effective, or two hours for some policy updates. To apply them at once, revoke the user's refresh tokens.
- CAE doesn't support guest user accounts. Sign-in frequency is honored with or without CAE.
- Strict location enforcement blocks access when the IP address the resource sees isn't allowed. Don't use it with traffic to non-Microsoft 365 apps through Global Secure Access: it blocks access even for a user in a trusted IP location.
- To troubleshoot, filter the sign-in logs with Is CAE Token, and check both the interactive and the non-interactive tab. The Continuous access evaluation insights workbook shows IP address mismatches.
Authentication context and protected actions
- Authentication context secures data and actions in applications, such as custom or line-of-business apps, SharePoint, or apps protected by Defender for Cloud Apps. It can also enforce Conditional Access during PIM role activation.
- You can create up to 99 authentication context definitions (c1-c99). The ID is read-only.
- Select Publish to apps so the authentication context is available to be assigned.
- To delete an authentication context, it must have no assigned Conditional Access policies and must not be published to apps.
- Authentication context works with users or workload identities, but not in the same policy.
- Protected actions are permissions that have been assigned Conditional Access policies. The policy is enforced when the user attempts the action, not at sign-in or role activation.
- Protected actions use an authentication context. A good starting policy requires passwordless MFA and excludes an emergency account.
- You need the Conditional Access Administrator or Security Administrator role to add or remove protected actions.
- Follow this sequence: check permissions, configure the authentication context and policy, add protected actions, test. The policy must be On, not Off or Report-only, or the user is asked to reauthenticate repeatedly.
- Microsoft Graph PowerShell and the admin center support step-up authentication. Azure PowerShell doesn't.
- Protected actions aren't meant to block a permission based on identity or group membership. Control that with role assignment.
- You can protect the permission that permanently deletes soft-deleted objects. Soft-deleted objects stay in the recycle bin for 30 days.
Plan, templates, test and troubleshoot
- Conditional Access has a limit of 240 policies per tenant, in any state.
- Conditional Access and security defaults aren't meant to be combined. Creating a policy prevents enabling security defaults.
- Exclude emergency access (break-glass) accounts to prevent lockout. Be careful with block plus all resources in one policy.
- Deploy in phases and enable each policy in report-only mode for at least one week before enforcement. Test the exclusions as well.
- A deleted policy or named location can be restored within the 30-day soft-delete period.
Templates
- Templates deploy policies aligned with Microsoft recommendations. Find them under Create new policy from templates.
- Each policy from a template is created in report-only mode. Template policies that target users exclude only the user who creates them.
- You can export the JSON definition and import it with Upload policy file.
- Classic policies stopped enforcing controls after July 10, 2024. After you disable a classic policy, you can't re-enable it.
Test and troubleshoot
| Tool | What it does |
|---|---|
| Report-only mode | Evaluates a policy at sign-in without enforcing it. Not available for the user actions scope. Results: Success, Failure, User action required, Not applied. Users aren't prompted. |
| What If | Simulates a sign-in. Includes only enabled and report-only policies. Requires identity, target resource, device platform and client app. Doesn't test service dependencies. Enter the App ID, not app groups. |
| Sign-in logs | The Conditional Access tab shows the policies that applied. Filter by correlation ID. Audience reporting shows all resources requested. |
| Insights and reporting workbook | Needs Microsoft Entra ID P1 and a Log Analytics workspace that receives sign-in logs. |
- Do not use block, compliant device, hybrid joined device or app protection policy for all users and all resources. Users without a compliant device, including admins, are locked out of the Intune portal.
- If you're locked out, ask another admin who isn't blocked to disable the policy. If none can, submit a support request.
- Report-only policies that require a compliant device can prompt Mac, iOS and Android users to pick a device certificate. Exclude those platforms from such report-only policies.
Exam Tips
Tick each tip once you can answer it without looking.
“One user is in scope of two policies: one requires MFA, the other a compliant device” → The user must satisfy both. Trap: Applicable policies are not alternatives. Only inside a single policy can you pick 'Require one of the selected controls'.
“An applicable policy has the Block grant control” → Enforcement stops and the user is blocked. Trap: Other grant controls and more specific policies don't override a block.
“User is in the included group and in the excluded group” → Excluded: the exclude overrides the include. Trap: It isn't first match or most specific wins.
“Only the Finance group is targeted. Others still reach the app” → Tokens are issued by default. Add a Block policy for all users, excluding Finance. Trap: A policy that doesn't trigger doesn't deny anything.
“User added to a targeted group but not affected yet” → Policies for roles and groups are evaluated when a token is issued. Get a new token, or trigger evaluation at PIM activation. Trap: There is no retroactive effect on an existing token.
“Target admin roles in a policy” → Built-in directory roles only. Trap: Administrative unit-scoped roles and custom roles aren't supported.
“Policy scoped to users and a service principal keeps working” → Use Conditional Access for workload identities (single tenant service principals). Trap: Managed identities and multitenant or third-party SaaS apps aren't covered.
“Block Chrome OS and other unsupported platforms” → Device platforms: include any device, exclude supported platforms, Block. Trap: The platform comes from the user agent string, which can be changed.
“MFA policy blocks an old mail client” → Legacy authentication clients can't do MFA or pass device state. Exclude them or apply the policy to modern clients, or block legacy auth. Trap: The Client apps toggle isn't needed to apply a policy to all client types. New policies apply to all by default.
“Target Teams, Exchange and SharePoint consistently” → Use the Office 365 app grouping. Trap: The What If tool needs a specific App ID. Groups of apps don't match.
“Authentication context can't be assigned in an app” → Select Publish to apps (up to 99 contexts, c1-c99). Trap: The ID is read-only. The display name is only a label.
“Require a stronger sign-in before editing Conditional Access policies” → Protected action: authentication context + policy On + Conditional Access or Security Administrator to configure. Trap: If the policy is Off or Report-only, the user is asked to reauthenticate again and again. Azure PowerShell fails, Graph PowerShell works.
“Default sign-in frequency” → Rolling window of 90 days. Trap: One hour is the default access token lifetime, not the sign-in frequency.
“Revoke access within minutes after account disablement or token revocation” → Continuous access evaluation: critical events work in any tenant, tokens up to 28 hours. Trap: CAE location enforcement only sees IP-based named locations. It doesn't support guest accounts.
“See what a new policy would do without enforcing it” → Report-only mode, then check the Report-only tab in sign-in logs. Use What If for a simulated sign-in. Trap: Report-only isn't available for user actions. What If ignores service dependencies and disabled policies.
“Policy created from a template” → Report-only, and only the creating user is excluded. Trap: Break-glass accounts aren't excluded automatically. Edit the policy.
“Limit on policies per tenant” → 240, counting report-only and off policies. Trap: 195 is the limit of named locations.
Sources
- What is Conditional Access
- Build Conditional Access policies
- Users, groups, agents and workload identities
- Target resources
- Conditions
- Grant controls
- Session controls
- Network signals and named locations
- Filter for devices
- Adaptive session lifetime
- Session lifetime concepts
- Token protection
- Continuous access evaluation
- CAE strict location enforcement
- Monitor and troubleshoot CAE
- Protected actions overview
- Add, test or remove protected actions
- Policy templates
- Plan a Conditional Access deployment
- Report-only mode
- What If tool
- Troubleshoot sign-in problems
Checked against Microsoft Learn on November 13, 2026.