azureblog.co.uk
← cd ~/learn
// interactive explainer · 9 steps

How Conditional Access evaluates a sign-in

Step through a single sign-in to see where Conditional Access looks, what it decides and where the common errors come from.

UserAppEntra IDConditional AccessOpens the app1Sign-in request forSharePoint2First factor: password or passkey3Collect signals: user, groups,app, IP, device, client, riskWhich policies apply?5Any policy blocks? Block winsGrant controls not met yet: prompt for MFA7All controls met, addsession controls8Tokens issued, sign-inlogged9
step 1 of 9

The user opens an app

Jane opens SharePoint in her browser. She isn't signed in, so the app sends her to Entra ID to sign in, saying which app she wants and what it needs access to.

or use ← → keys

All the steps

  1. Jane opens SharePoint in her browser. She isn't signed in, so the app sends her to Entra ID to sign in, saying which app she wants and what it needs access to.

  2. The request names the app (its client ID) and the resource. Conditional Access policies target these, which is why the same user can get different prompts in different apps.

  3. She signs in with her first factor. With a passkey this already counts as phishing-resistant MFA. A wrong password ends here with AADSTS50126, before Conditional Access is involved.

  4. Who she is and which groups and roles she has, which app, her public IP and named location, the device and whether it's compliant, the client type, and with P2, the sign-in and user risk.

  5. Each enabled policy whose assignments and conditions match is applied. There's no order or priority. Report-only policies are evaluated too, but only logged. Exclusions always beat inclusions.

  6. If any applicable policy says block, the sign-in fails with AADSTS53003, whatever the other policies say. That's why break-glass accounts must be excluded from every policy.

  7. Every applicable policy's grant controls must be met. If MFA or an authentication strength is required and not yet satisfied, Jane is prompted. Device controls can't be prompted for: a non-compliant device fails with AADSTS53000.

  8. With every grant control satisfied, session controls such as sign-in frequency, persistent browser and app enforced restrictions are applied to the session.

  9. SharePoint gets its tokens. The sign-in log records every policy that applied, whether it passed or failed and which controls were used. That's the first place to look when something is blocked.