Audience: On-call / Ops / Support escalation. Operational recovery for the identity layer. Each scenario: symptom → diagnosis → fix → prevention.

Identity failures block everyone — this layer is upstream of every module. Prioritise Primary-Admin-recovery and token/session issues (they can lock out an entire org).


1. Admin locked out (too many attempts)

Symptom: login returns LockedOut.

Diagnose: confirm it's lockout, not Failed (wrong password) or NotAllowed (unconfirmed email).

Fix: wait out the lockout window, or clear the lockout on the ApplicationUser (MembershipDb). Confirm identity out-of-band first.

Prevent: guide users to reset via ForgotPassword rather than retrying.

2. 2FA reset — lost device, fully locked out

Symptom: user has the right password but no authenticator; can't pass TwoFactorRequired.

Diagnose: verify the human out-of-band (this is a security-sensitive reset — the whole point of 2FA).

Fix: clear/reset the user's 2FA key (GetTwoFactorAuthenticationKey seed) so they re-enrol on next login; or, if they can still log in, direct them to 2fa/Disable → re-enable.

Prevent: encourage backup codes / a second enrolled device where supported.

3. Primary Admin recovery (sole owner gone)

Symptom: the only Primary Admin left the company without transferring; org has no all-access owner.

Diagnose: confirm via GetPrimaryAdmin there's no reachable Primary Admin; identify a legitimate successor (contract/finance contact).

Fix: support-assisted ChangePrimaryAdmin to the verified successor. High-trust operation — verify authority to the company, not just the person.

Prevent: always have a Secondary Admin; run ChangePrimaryAdmin before off-boarding an owner (how-to §5).

4. "Unauthorized" for someone who should have access

Symptom: a user hits UnauthorizedPage on a page they should see.