Admins Locked Out
Staff are signing in as normal this morning. The problem is the admins: every account with an admin role is blocked, including yours and the whole service desk. Forty password reset tickets are already waiting and nobody can touch them.
Three locks to open
- 1Find the cause. Work out why only admins are blocked, and prove it.
- 2Fix it. Get the service desk working again without throwing away the security work. Mei may have set up more than one policy.
- 3Prove it. Show that Sam can sign in from his own desk PC.
This room has a case file: the first lock only opens when you pin the evidence that proves the cause.
I can't get into anything admin. 'Device is not in required device state'. Everyone else on the desk is the same, and the queue is filling up with password resets. Sam Mensah, Service desk, direct line 0113 496 0742.
Is something wrong? My PA is locked out of her account and the service desk says they can't help.
Break-glass account? The safe code changed after the fire drill. Facilities left a notice on your desk.
You escaped Admins Locked Out
Damage report
What happened
Mei, the security lead, had prepared a Conditional Access policy requiring compliant devices for every admin role, following a penetration test. On Sunday night she switched it from report-only to On, and cloned it for the Service Desk group a few minutes later, before any admin laptops were enrolled in Intune. On Monday morning every admin and the whole service desk failed with 53000 'device is not in required device state', while ordinary staff signed in as normal. The MFA policy she touched the same evening was a red herring.
How you'd fix it for real
- Sign in with an emergency access account, which is excluded from Conditional Access.
- Use the sign-in logs (or a KQL query) to find what the blocked users have in common, and the audit log for what changed.
- Switch every policy that's blocking people back to report-only, or scope them to the admins who already have compliant devices. Don't delete them.
- Test the sign-in for an affected user on their real device before telling everyone it's fixed.
Where to find this in the real portal
- Find the policy
Entra admin center > Entra ID > Conditional Access > Policies - Test who it blocks before switching it on
Entra ID > Conditional Access > Policies > What If - Confirm it in a blocked sign-in
Entra ID > Monitoring & health > Sign-in logs, open the sign-in > Conditional Access tab - See who switched it on
Entra ID > Monitoring & health > Audit logs
Stop it happening again
- Check report-only results before switching a policy on: they would have shown every admin failing.
- Roll device requirements out to admins in waves, by group, as their devices are enrolled.
- Keep at least two emergency access accounts excluded from every policy, and keep the way to reach their credentials up to date.
Learn it properly
Free interactive lessons on the skills this room tests, with exam-style checks.
- Plan, implement and manage Conditional AccessPlan, build, test and troubleshoot Conditional Access policies, including session controls, device filters, CAE, authentication context, protected actions and templates.
- Authentication and access for Microsoft 365Authentication methods and the converged policy, Password Protection, self-service password reset, troubleshooting sign-ins with error codes and logs, and Conditional Access with ID Protection and MFA.