Fix Microsoft Authenticator You Did Not Enter the Expected Code Error
Question details
The user receives a 'You did not enter the expected code' message (error 500121) when trying to authenticate their sign-in.

- 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.
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.
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.
Reach out to your internal IT department and explain you are receiving error 500121 (You did not enter the expected code).
Ask the IT administrator to reset your multi-factor authentication methods and check the sign-in logs to confirm the error.
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.
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.

Use the Verification Method Requested by the Prompt
Ensure you are interacting with the prompt using the exact method it expects, rather than forcing a different authentication type.
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. Download WPS Office: Visit the official WPS website and download the free installation file.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to set it up on your device.
- 3. Start Creating: Open WPS Office and instantly begin working on your Word, Excel, or PowerPoint documents without mandatory cloud logins.

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.




