MFA & Verification Issues

Fix Microsoft Authenticator You Did Not Enter the Expected Code Error

Khadija KhanKhadija Khan Oct 19, 2026 868 views

Question details

The user receives a 'You did not enter the expected code' message (error 500121) when trying to authenticate their sign-in.

How to Fix 'You Did Not Enter the Expected Code' in Microsoft Authenticator
Product
Microsoft Authenticator
Device & OS
not provided
Scenario
Signing into a Microsoft work or school account that requires multi-factor authentication (MFA).
Observed behavior
The authentication system rejects the entered code or method, typically because the organization uses multiple MFA providers and the user's account is registered to the incorrect one.
Before you start

Verify that your device's date and time are set to update automatically, and ensure you have an alternate way to contact your organization's IT department.

Solution 1Recommended

Contact Your IT Administrator to Reset MFA Methods

Because error 500121 is an account-side configuration issue, your IT department must clear your old MFA registrations so you can set up the correct system.

Reinstalling the Microsoft Authenticator app or clearing its cache will generally not resolve this issue if your organization uses multiple authentication systems. The mismatch occurs on the server side.

1
Contact IT Support

Reach out to your internal IT department and explain you are receiving error 500121 (You did not enter the expected code).

2
Request an MFA Reset

Ask the IT administrator to reset your multi-factor authentication methods and check the sign-in logs to confirm the error.

3
Remove Old Configurations

Once IT confirms the reset, open the Microsoft Authenticator app, tap on your work or school account, tap the settings gear, and select 'Remove account' to clear the incorrect registration.

4
Register the Correct System

Follow the new enrollment link or scan the new QR code provided by your administrator to register the correct MFA method required by your company.

Contact Your IT Administrator to Reset MFA Methods
Multiple MFA Providers: If your company uses two separate MFA systems, clarify with your IT admin exactly which portal or QR code corresponds to the service you are trying to access.
Free Microsoft Office alternative

Experience Hassle-Free Productivity with WPS Office

While troubleshooting complex Microsoft account and multi-factor authentication issues, keep your work moving with WPS Office. It is a lightweight, reliable, and completely free alternative that allows you to edit documents offline without dealing with frustrating login barriers.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation file.
  2. 2. Install the Software: Run the installer and follow the simple on-screen instructions to set it up on your device.
  3. 3. Start Creating: Open WPS Office and instantly begin working on your Word, Excel, or PowerPoint documents without mandatory cloud logins.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).No complex online authentication required for local document editing.Lightweight design ensures smooth performance on all devices.Familiar user interface makes migration seamless and intuitive.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Authenticator say my code is unexpected?

This usually happens when there is a mismatch between the authentication method you are using and the one configured on your organization's server. It commonly occurs in environments that utilize multiple MFA providers.

Will reinstalling the Authenticator app fix error 500121?

In most cases involving work or school accounts, reinstalling the app or clearing its cache will not resolve the issue. The configuration error exists on the server side, meaning you must contact your IT administrator to have your MFA methods reset.

What does error 500121 mean in Microsoft 365?

Error 500121 indicates that authentication failed during a multi-factor authentication (MFA) request. It means the system rejected the user's input because it did not match the expected security parameter or setup.