How to Fix Error AADSTS50020 in Outlook and Teams on Mobile
Question details
Users are unable to log into Microsoft Outlook and Teams on their mobile devices due to error AADSTS50020 after migrating to a new Microsoft 365 tenant.

- Product
- Microsoft Outlook, Microsoft Teams, Microsoft 365
- Device & OS
- Android, iOS
- Scenario
- Attempting to sign in to mobile email and communication apps after a Microsoft 365 tenant migration.
- Observed behavior
- The mobile applications retain credentials from the previous tenant and block access, displaying the AADSTS50020 error code.
Ensure you have the new Microsoft 365 tenant login credentials on hand, and back up any unsynced offline drafts before clearing the application data.
Clear App Data and Credentials on Android
Use this method if you are using an Android device to force Outlook and Teams to prompt for your new tenant credentials.
Open your Android device Settings, navigate to Apps, and select Outlook (or Teams). Tap on Storage & cache, then select Clear storage and Clear cache to remove old tenant data.
Go back to the main Android Settings menu, search for Autofill service, and temporarily disable it to prevent the device from automatically injecting your previous tenant credentials.
Open the Outlook or Teams app again. You will be prompted to set up the app as if it were a new installation. Enter your new Microsoft 365 tenant email address and password.

Remove Passwords and Reinstall Apps on iPhone
iOS users should clear Keychain data and perform a clean installation of the affected apps to eliminate the AADSTS50020 error.
Enable Exchange ActiveSync (For Administrators)
If mobile access continues to fail while web access works, administrators need to ensure mobile sync features are activated for the specific mailbox.
Experience Hassle-Free Document Editing with WPS Office
Dealing with tenant migrations and complex login errors in Microsoft 365 can disrupt your workflow. WPS Office provides a lightweight, highly compatible alternative for opening, editing, and creating Word, Excel, and PowerPoint documents without the headaches of strict cloud tenant management.
- 1. Download and Install: Get WPS Office for free from the official website or your device's app store.
- 2. Open Your Files: Launch the app and open any existing Word, Excel, or PowerPoint document seamlessly.
- 3. Edit Without Hassle: Enjoy full editing capabilities without worrying about tenant login errors or forced subscriptions.

Frequently Asked Questions
What exactly does the AADSTS50020 error mean?
Error AADSTS50020 indicates that an identity provider account does not exist in the target tenant directory. In mobile apps, this usually happens when the device attempts to log in using cached credentials from a previous Microsoft 365 tenant instead of the new one.
Why does Outlook work on my web browser but show AADSTS50020 on my phone?
Web browsers often prompt for new credentials or start with a fresh session, especially if you use incognito mode. Mobile applications and device operating systems actively cache login tokens and passwords, which forces the app to try authenticating with your old tenant data.
Do I have to completely uninstall the app on my iPhone to fix this?
While clearing cached data from iOS settings sometimes works, completely uninstalling and reinstalling the app is the most reliable way to clear deeply cached authentication tokens that cause the AADSTS50020 error in iOS.




