Locked out of Microsoft 365 / Entra ID
Users or admins cannot sign in. Tell a provider outage from a lockout you caused, undo only the one change, and use break-glass correctly.
What you are probably seeing
- Users cannot sign in to Outlook, Teams or the portal and see an error with an
AADSTScode under “More details”. - MFA prompts never arrive.
- You are blocked from the admin center yourself, for example with
AADSTS53003(blocked by Conditional Access). - Only admins are locked out and someone changed a Conditional Access policy recently. Or everyone is locked out and nobody changed anything.
First 5 minutes
- Write the time and the exact error text, including the
AADSTScode, in the log. A photo of the screen is fine. - Check the public status page from your phone: Is it us or them? The admin center’s Service health needs a sign-in that may fail now.
- Ask out loud or by phone: did anyone change Conditional Access, MFA or federation today?
- Try a second normal admin account from a second device. Note what each shows.
- Decide: outage (not your change: communicate and wait) or lockout (your change: undo that one change). If you cannot tell within 15 minutes, escalate and keep checking.
Do not touch yet
- Do not turn off MFA or security defaults for the whole tenant.
- Do not disable all Conditional Access policies “for five minutes”.
- Do not create a new Global Administrator.
- Do not take the break-glass credentials out of the safe just to look around.
- Do not tell users to sign out. Many still have working sessions.
Checks
What does the error code say?
Look the code up in Microsoft’s list: error codes, Microsoft Learn. If any admin still gets in, read recent sign-ins:
Connect-MgGraph -Scopes "AuditLog.Read.All","Policy.Read.All","Policy.ReadWrite.ConditionalAccess"
Get-MgAuditLogSignIn -Top 20
Source: Connect-MgGraph, Microsoft Learn and Get-MgAuditLogSignIn, Microsoft Learn
One session covers the next checks too. Reading sign-ins needs AuditLog.Read.All (List signIns). Listing Conditional Access policies needs Policy.Read.All (List policies). Changing one needs Policy.Read.All and Policy.ReadWrite.ConditionalAccess, and the account needs a role such as Conditional Access Administrator or Security Administrator (Update conditionalAccessPolicy).
Sign-in log access depends on your Entra ID licence; see sign-in logs, Microsoft Learn. If you cannot read them, decide from the status page and the user’s screen.
53003for some accounts, right after a policy change: a lockout. Find the policy (next check).- Errors for everyone and nothing changed: check the status page. Communicate and wait. Do not weaken MFA.
Which Conditional Access policy changed?
Get-MgIdentityConditionalAccessPolicy | Sort-Object ModifiedDateTime -Descending | Select-Object Id, DisplayName, State, ModifiedDateTime -First 5
Source: Get-MgIdentityConditionalAccessPolicy, Microsoft Learn and the property list in conditionalAccessPolicy resource, Microsoft Learn
- One policy changed shortly before the errors started: that is your suspect. Note its Id and settings in the log, then set only that policy to report-only.
Update-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId <policy-id> -State enabledForReportingButNotEnforced
Source: Update-MgIdentityConditionalAccessPolicy, Microsoft Learn and the state values in conditionalAccessPolicy resource, Microsoft Learn
- Nothing changed: look at federation, the MFA provider and the status page instead.
Can you get in at all?
- A normal admin works from another device or method: use that. Leave break-glass in the safe.
- No normal admin works, and it is a lockout: use a break-glass account, then tell whoever watches its sign-in alert that it is you.
- Break-glass fails too: stop. Change nothing else. Call Microsoft support from the number in your printed pack, with tenant ID and domain ready. Expect a long hold and identity checks.
How-to: H1 Create and test Entra ID emergency access accounts
Decision points
- +15 minutes: outage or lockout. If you still cannot tell, escalate.
- Every 30 minutes during a provider outage: re-check the status page and log it. Waiting is the right call; logging shows it was a decision.
- Before break-glass: where is the key physically, and can you reach it within 60 minutes? If not, call the second key-holder now.
Alone?
You drive and you write the log, one line before each change. If someone asks you to “just turn MFA off”: no. Log who asked.
Stop and escalate when
- The break-glass account does not work either.
- You cannot tell outage from lockout after 15 minutes.
- Audit logs show policy or role changes nobody on your team made. Treat it as a security incident.
- Someone asks you to send break-glass credentials by mail, chat or photo.
What to tell management
“Sign-in to Microsoft 365 is failing since [time]. It is [a Microsoft outage / caused by a policy change we made]. Existing sessions may keep working, so please do not sign out. Next update at [time + 30 min].”
Points of no return
- Tenant-wide switches (security defaults off, all policies off) outlive the incident and leave every account exposed. Change only the one policy, set it to report-only, and log it.
- Converting a federated domain to managed authentication is a planned change, not a 2am experiment.
After it is back up
Set the policy back to enabled only after you fixed its exclusions, and log it. Run the incident review: P6 Handover, drills and learning after incidents. If break-glass was hard to reach, fix that in P4 Documentation and asset list.