Fix Invalid Verification Code in Microsoft Authenticator for Salesforce
Question details
The user needs to resolve an invalid verification code error in Microsoft Authenticator while setting up multi-factor authentication for a Salesforce account on an Android device.

- Product
- Microsoft Authenticator and Salesforce
- Device & OS
- Android
- Scenario
- Setting up Multi-Factor Authentication (MFA) for a Salesforce organization using the Microsoft Authenticator app on a mobile device.
- Observed behavior
- The Microsoft Authenticator app generates a verification code that Salesforce rejects as invalid during setup on Android, whereas the same setup works perfectly on iOS devices.
Ensure you have a stable internet connection and access to your desktop Salesforce portal to generate a new MFA QR code before proceeding.
Sync Device Time and Reconfigure Authenticator
Time-based authentication codes require your device clock to be perfectly synced. Correcting the device time and scanning a fresh QR code typically resolves the issue.
Microsoft Authenticator uses Time-Based One-Time Passwords (TOTP). If your Android device's clock is even slightly out of sync with the global time server, the generated codes will be rejected by Salesforce as invalid.
Go to your Android Settings, select 'General Management' or 'System', and tap on 'Date and time'. Ensure the toggle for 'Automatic date and time' is turned on so your device syncs with network time.
Open the Google Play Store and ensure Microsoft Authenticator is fully updated. Additionally, check your Android settings for any pending system updates and install them.
Open the Microsoft Authenticator app, tap the problematic Salesforce account, select the settings (gear) icon in the top right, and choose 'Remove account'.
Log into Salesforce on your desktop browser. Navigate to your personal settings or the MFA enrollment prompt to generate a new QR code. Do not attempt to reuse an old or expired QR code.
In the Authenticator app, tap the '+' icon to add an account, select 'Other account', and scan the newly generated QR code from your desktop screen.

Reset MFA Enrollment via Salesforce Administrator
Use this solution if your authenticator app is synced properly but Salesforce continues to reject the codes, indicating a potential enrollment conflict.
Boost Your Productivity with WPS Office
While you troubleshoot your Microsoft Authenticator and Salesforce integration, consider switching to WPS Office for your document management needs. It is a highly compatible, lightweight alternative to Microsoft Office that offers a familiar interface without the hefty subscription fees.
- 1. Download WPS Office: Visit the official WPS Office website and download the installer for your operating system.
- 2. Install the Application: Run the setup file and follow the on-screen instructions to install the software on your device.
- 3. Open and Create Documents: Launch WPS Office and instantly open your existing Microsoft Office files or create new documents, spreadsheets, and presentations.

Frequently Asked Questions
Why does Microsoft Authenticator work on iOS but fail on Android for Salesforce?
This discrepancy is most commonly caused by a time desync on the Android device. Time-based One-Time Passwords (TOTP) rely on precise synchronization. While iOS devices may have synced correctly, ensuring 'Automatic date and time' is enabled in Android settings usually fixes the Android failure.
Can I reuse a QR code from a previous Salesforce MFA setup?
No. QR codes generated for MFA enrollment are unique to each session and expire quickly. If you need to re-add your account to Microsoft Authenticator, you must generate a fresh QR code from your Salesforce security settings.
Who should I contact if Microsoft Authenticator keeps failing despite troubleshooting?
If basic troubleshooting fails, you should contact Microsoft Authenticator support directly. Avoid redirecting to Outlook mobile support, as they handle different issues. Additionally, contact your company's Salesforce administrator to request an MFA enrollment reset on their end.




