Microsoft 365 Error Codes

Fix Microsoft 365 Error AADSTS50020 After Tenant Migration

Huma Ashraf ChHuma Ashraf Ch Oct 12, 2026 870 views

Question details

User needs to fix error AADSTS50020 in Office desktop applications after their organization moved to a new Microsoft Entra ID tenant.

How to Fix Microsoft 365 Error AADSTS50020 After a Tenant Migration
Product
Microsoft Word, Excel, PowerPoint
Device & OS
not provided
Scenario
Opening and activating Microsoft Office desktop applications following an organizational tenant migration.
Observed behavior
OneDrive and Outlook work normally, but Word, Excel, and PowerPoint display error AADSTS50020 because the user account is not recognized in the new tenant.
Before you start

Ensure you have your new organizational login credentials available and verify that your IT department has officially completed your account migration before troubleshooting.

Solution 1Recommended

Use the Office License Removal Tool and Contact Your Administrator

Clear cached credentials from the previous tenant using Microsoft's official tool, then have your IT admin activate your account in the new tenant.

When an organization migrates to a new Microsoft Entra ID tenant, Office applications often retain old activation data. Manually deleting files is not recommended; instead, Microsoft provides a dedicated tool to thoroughly clean old licenses.

After clearing the old license, your organization's IT administrator must ensure your account is properly added and activated in the new tenant environment.

1
Download the License Removal Tool

Download the official Microsoft Office license-removal tool from the Microsoft support website.

2
Run the Tool

Open the downloaded .pkg or .exe file and follow the on-screen prompts to clear your device's previous Office activation data completely.

3
Restart Your Device

Reboot your computer to ensure all cached credentials and registry changes are fully cleared.

4
Contact Your IT Administrator

Reach out to your university or organization IT administrator. Request them to follow Microsoft's specific AADSTS50020 troubleshooting guidance to verify your account identity exists in the new tenant.

5
Sign In to Office Again

Once the admin confirms your account is active in the new tenant, open Word or Excel and sign in with your new organizational credentials.

Use the Office License Removal Tool and Contact Your Administrator
Administrator Action Required: Even after clearing your local licenses, the issue cannot be fully resolved until your IT administrator properly configures your user identity in the new Microsoft Entra ID tenant.
Free Microsoft Office alternative

Use WPS Office to Keep Working During Tenant Migrations

If Microsoft 365 licensing errors like AADSTS50020 are locking you out of your important documents, try WPS Office. It is a free, lightweight alternative that lets you edit your files locally without relying on complicated cloud tenant activations.

  1. 1. Download and Install: Visit the WPS website to download the free WPS Office suite and install it on your device.
  2. 2. Open Your Existing Files: Right-click your Word, Excel, or PowerPoint documents and select 'Open with WPS Office' to continue working immediately.
  3. 3. Save in Original Formats: Edit your files and simply hit Save. WPS Office retains the original Microsoft formats so you can seamlessly share them with colleagues.
Completely free to use with a familiar, easy-to-learn interfaceHighly compatible with Microsoft Office formats including .docx, .xlsx, and .pptxWork offline without worrying about tenant migrations or Azure AD errorsLightweight installation gets you back to work in minutes
microsoft office alternative - wps office

Frequently Asked Questions

Why do OneDrive and Outlook work while Word and Excel show the AADSTS50020 error?

OneDrive and Outlook often use different authentication mechanisms or re-authenticate successfully on their own, whereas Word, Excel, and PowerPoint desktop applications tend to hold onto the old tenant's cached licensing and activation credentials.

Can I manually delete the license files instead of using the Microsoft tool?

It is strongly advised to use the official Microsoft Office license-removal tool. Manually deleting files can leave behind hidden registry keys or cached tokens that will continue causing the AADSTS50020 error.

What exactly does the AADSTS50020 error code mean?

This error signifies that your user account or identity provider does not exist in the targeted Microsoft Entra ID tenant. It usually occurs when logging in after an organization changes domains or migrates to a new IT environment.