Sign-in & Login Problems

Fix OneDrive Desktop Sign-In Errors After Microsoft 365 Tenant Rename

Steve KSteve K Nov 3, 2026 870 views

Question details

Users are experiencing sign-in failures on the OneDrive desktop client after their Microsoft 365 tenant name was changed, despite the web version working perfectly.

How to Fix OneDrive Sign-In Errors After Renaming a Microsoft 365 Tenant
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Attempting to log into the OneDrive desktop app immediately after an organization renames its Microsoft 365 tenant.
Observed behavior
The desktop client fails to authenticate and sign in, frequently returning Azure Active Directory errors such as AADSTS50020, whereas the browser-based OneDrive functions without any issues.
Before you start

Ensure you have the exact error code (such as AADSTS50020) handy and confirm whether you can successfully log into OneDrive via a web browser before troubleshooting the desktop client.

Solution 1Recommended

Verify Azure Active Directory Settings and Clear Cached Credentials

Clear outdated desktop tokens and ensure the account is recognized under the newly renamed Azure AD tenant to resolve error AADSTS50020.

When a Microsoft 365 tenant is renamed, identity tokens for desktop clients may not automatically update to point to the correct Azure Active Directory (Azure AD) endpoint.

This mismatch causes the identity provider to reject the login attempt, leading to error code AADSTS50020. Clearing your local credentials forces the desktop client to fetch the newly updated tenant tokens.

1
Clear Windows Credentials

Press the Windows key, type 'Credential Manager', and open the application. Navigate to 'Windows Credentials' and remove any entries related to 'OneDrive' or 'MicrosoftOffice'.

2
Review Azure AD Error Guidance

Visit the official Microsoft troubleshooting page for error AADSTS50020 to ensure your user account identity is properly configured in the renamed tenant.

3
Unlink and Relink OneDrive

Right-click the OneDrive cloud icon in the taskbar, go to 'Settings', select the 'Account' tab, and click 'Unlink this PC'. Restart the application and sign in again with your updated credentials.

Verify Azure Active Directory Settings and Clear Cached Credentials
Propagation Time: Tenant renames can take up to 24 hours to fully propagate across all backend Microsoft 365 services. If the rename was just performed, you may need to wait before trying to sign in again.
Free Microsoft Office alternative

Switch to WPS Office for Seamless Document Management

Dealing with complex Microsoft 365 tenant rename issues and OneDrive sync errors can severely disrupt your workflow. WPS Office provides a free, lightweight, and user-friendly alternative with its own built-in cloud storage (WPS Cloud), ensuring you can access, edit, and save your documents without the headache of complex enterprise backend configurations. It offers excellent compatibility with Microsoft Office formats, making migration smooth and effortless.

  1. 1. Download and Install WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Activate Free Cloud Storage: Sign in with your email or social account to automatically activate your free WPS Cloud storage space.
  3. 3. Open Your Existing Files: Open your locally saved Word, Excel, and PowerPoint files directly in WPS Office without needing any format conversion.
  4. 4. Save and Sync Effortlessly: Save your edited files to WPS Cloud to ensure they are backed up and accessible across all your devices, independent of OneDrive.
Fully compatible with Microsoft Office file formats (.docx, .xlsx, .pptx) to prevent formatting loss.Built-in WPS Cloud storage bypasses complex third-party tenant configurations and sync errors.Lightweight desktop installation with a familiar, tabbed user interface for easy navigation.Completely free to download and use for your essential daily productivity tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive work in my browser but not on the desktop after a tenant rename?

The browser version creates a fresh session and retrieves the newest Azure AD tokens instantly upon login. The desktop client, however, relies on cached credentials and tokens linked to the old tenant name, resulting in a sign-in mismatch.

What does error code AADSTS50020 mean in Microsoft 365?

This error indicates that the user account identity does not exist in the specified Azure Active Directory tenant. It frequently occurs after an organizational tenant rename when the desktop app attempts to authenticate against the outdated tenant configuration.

How long does a Microsoft 365 tenant rename take to fully sync?

Tenant renames can take anywhere from a few hours up to 24 hours to fully propagate across all Microsoft 365 backend services, including Azure AD, SharePoint, and all desktop synchronization clients.

Can I use WPS Office to open files stored locally while OneDrive is unable to sign in?

Yes, WPS Office works perfectly as a standalone, offline suite. You can natively edit locally saved Word, Excel, and PowerPoint files and later back them up to WPS Cloud or your preferred storage once the connection is restored.