logo
search
Microsoft 365 Error Codes

How to Fix Error AADSTS50020 in Outlook and Teams on Mobile

Kushani NimanthikaKushani Nimanthika Sep 27, 2026 869 views

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.

How to Fix Error AADSTS50020 in Outlook and Teams on Mobile
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.
Before you start

Ensure you have the new Microsoft 365 tenant login credentials on hand, and back up any unsynced offline drafts before clearing the application data.

Solution 1Recommended

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.

1
Clear App Storage and Cache

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.

2
Disable Password Autofill

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.

3
Sign In with New 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.

Clear App Data and Credentials on Android
Autofill Reactivation: Once you have successfully logged in with your new credentials, you can safely re-enable your Autofill service in the Android settings.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office for free from the official website or your device's app store.
  2. 2. Open Your Files: Launch the app and open any existing Word, Excel, or PowerPoint document seamlessly.
  3. 3. Edit Without Hassle: Enjoy full editing capabilities without worrying about tenant login errors or forced subscriptions.
Completely free and easy-to-use alternative to Microsoft OfficeSeamless format compatibility with Microsoft Word, Excel, and PowerPoint filesNo complex tenant restrictions or mandatory cloud logins to edit local filesLightweight mobile apps available for both Android and iOS devices
microsoft office alternative - wps office

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.