Fix Outlook Stuck in MFA Loop: Break Authentication Cycle
In this article
If Outlook is stuck in an MFA (Multi-Factor Authentication) loop—repeatedly prompting for verification codes without successfully signing in—the issue is usually caused by cached credentials, expired sessions, or app-specific MFA restrictions. The fix involves clearing Outlook’s stored authentication data, ensuring the correct sign-in method is used, and verifying your MFA settings in Microsoft Entra ID (formerly Azure AD). Below are the precise steps to break the cycle and restore normal access.
What You'll Need
- A working internet connection
- Access to your secondary authentication method (e.g., phone number, authenticator app, email)
- Administrative access (if using a work/school account; personal Microsoft accounts don’t require admin help)
Step-by-Step
- Completely close Outlook: Right-click the Outlook icon in the taskbar, select Close all, or open Task Manager (Ctrl+Shift+Esc), find Microsoft Outlook, and end all related processes. Ensure no background processes (like Outlook.exe or MSOSYNC.exe) remain active.
- Clear cached credentials from Windows Credential Manager:
- Press Win+R, type
control keymgr.dll, and press Enter. - Go to Windows Credentials.
- Under Generic Credentials, expand entries containing MicrosoftOffice16_Data, Outlook, MSOSecurity, or your Microsoft account email.
- Click each, then select Remove. Repeat for all relevant entries.
- Close Credential Manager.
- Press Win+R, type
- Sign out of all Microsoft accounts in Windows:
- Go to Settings > Accounts > Your info.
- Click Sign in with a local account instead (if prompted to switch accounts, choose Sign out first).
- Alternatively, on newer Windows versions: Settings > Accounts > Email & accounts, select each Microsoft account, and choose Remove.
- Restart your device: A full reboot ensures all cached tokens and sessions are flushed. Skip this only if you’re on a shared workstation—otherwise, it’s critical for success.
- Open Outlook with clean profile flags:
- Press Win+R, type
outlook /safe, and press Enter. This launches Outlook in Safe Mode, disabling add-ins that may interfere with authentication. - When prompted to sign in, enter your full email address (e.g., user@company.com), not just your username.
- After entering your password, you should now be prompted for MFA.
- Press Win+R, type
- Complete MFA and allow app access:
- Use your authenticator app, SMS, or email to verify—do not use a temporary code from a previous session.
- After verifying, check the box labeled Keep me signed in *only if you’re on a personal device*. On work devices, this may be disabled by policy.
- If Outlook asks about permissions (e.g., for Exchange Online), click Yes or Allow.
- Exit Safe Mode and restart Outlook normally:
- Close Outlook completely.
- Launch Outlook again—no
/safeflag this time. - If it signs in without looping, the issue is resolved.
Common Mistakes
- Using the wrong account format: Entering just john instead of john@company.com in Outlook can trigger repeated MFA prompts because the backend fails to match the session to the correct tenant.
- Skipping Credential Manager cleanup: Old cached tokens persist even after password changes, causing Outlook to reuse expired credentials and loop back to MFA.
- Ignoring app passwords for legacy clients: If Outlook is configured as an IMAP/POP account (not Exchange ActiveSync), and MFA is enforced, you must create an app password in Microsoft account settings and use *that* instead of your regular password.
- Not restarting after sign-out: Some token caches (e.g., ADAL/MSAL) require a reboot to fully invalidate sessions.
Tips
- Test in a browser first: Sign into Outlook Web (https://outlook.live.com or your company’s OWA URL) in an InPrivate window. If it works there, the issue is Outlook-specific (e.g., profile corruption or credential store).
- Check MFA settings in Entra ID (if your org uses Microsoft Entra): An overly strict Conditional Access policy (e.g., Require MFA on every sign-in) can cause loops if Outlook doesn’t hold a session token. Your admin may need to exclude Outlook desktop apps from MFA or set Remember MFA for trusted devices.
- Use the Microsoft Support and Recovery Assistant (SaRA): Download it from Microsoft’s official site. Run Mail issues > Account sign-in problems. It auto-fixes many MFA loops by rebuilding profiles and clearing tokens.
- On macOS, clear Keychain entries: Open Keychain Access, search for Microsoft, Outlook, or Exchange, and delete related items (e.g., MSALAccount, Exchange SSL).
Troubleshooting
If Outlook remains stuck after following the steps above:
- Verify your MFA method is active: Go to https://account.microsoft.com/security or your org’s MFA portal. Confirm your phone number or authenticator app is registered and working. Try generating a new code manually.
- Check for Conditional Access policies (work accounts): Your admin may require device compliance or IP-based access. Ask them to run Sign-in logs in Microsoft Entra to see error codes (e.g., AADSTS50158 for external sharing, AADSTS50105 for sign-in policies).
- Create a new Outlook profile:
- Go to Control Panel > Mail > Show Profiles.
- Click Add, name it (e.g., NewProfile), then Next.
- Re-add your email account manually (do not use auto-configure).
- Set this profile as Always use this profile.
- Disable third-party security software temporarily: Antivirus or firewall tools (e.g., Norton, McAfee) can intercept authentication traffic. Disable them, restart Outlook, and test.
- Reinstall Outlook:
- Go to Settings > Apps > Installed apps, find Microsoft 365 or Outlook, click ... > Modify > Quick Repair.
- If repair fails, choose Online Repair (this preserves data files).
- As a last resort, uninstall and reinstall via Microsoft 365 admin center or Office setup.
If using a work account, contact your IT helpdesk with the error code (if visible in Outlook’s sign-in dialog)—they can reset your MFA method or adjust policies on your behalf.
Frequently Asked Questions
Why does Outlook keep asking for MFA even after I enter the code?
This usually means the initial password authentication succeeded, but the MFA token wasn’t stored properly due to cached credentials or profile corruption. Clearing the credential store and restarting Outlook resolves this in most cases.
Can I disable MFA for Outlook desktop?
Not recommended for security, but admins can create Conditional Access policies that exclude desktop Outlook apps from MFA requirements. Users cannot self-service disable MFA for Outlook—it’s enforced by the tenant’s security policies.
Does this work for Outlook on Mac?
Yes, but steps differ slightly: On macOS, use Keychain Access to remove Microsoft-related entries, launch Outlook with /safe via Terminal, and ensure your macOS keychain doesn’t block token storage. The Credential Manager step doesn’t apply.
Why does it work in Outlook Web but not the desktop app?
Outlook Web uses modern authentication (OAuth 2.0) and holds session tokens differently. Desktop Outlook may fall back to legacy protocols (e.g., Basic Auth) if Modern Auth isn’t enforced—especially if your tenant disabled it. Your admin must enable Modern Auth in Exchange Online for Outlook to work with MFA.
Is there a way to bypass MFA without admin help?
No. Microsoft enforces MFA at the identity layer. Bypassing it compromises security and violates Microsoft’s terms. Always use app passwords (for IMAP/POP) or ensure your client supports modern authentication.
How long does an MFA session last in Outlook?
By default, Outlook holds an MFA session for 14 days if Remember MFA is checked during sign-in. If your org uses Conditional Access, this may be shortened to 1 hour or disabled entirely.