Fix OneDrive Desktop Sign-In Errors After Microsoft 365 Tenant Rename
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.

- 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.
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.
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.
Press the Windows key, type 'Credential Manager', and open the application. Navigate to 'Windows Credentials' and remove any entries related to 'OneDrive' or 'MicrosoftOffice'.
Visit the official Microsoft troubleshooting page for error AADSTS50020 to ensure your user account identity is properly configured in the renamed tenant.
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.

Request Server-Side Support via Microsoft 365 Admin Center
If local troubleshooting fails, backend synchronization logs must be inspected by Microsoft to fix tenant identity issues.
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. Download and Install WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Activate Free Cloud Storage: Sign in with your email or social account to automatically activate your free WPS Cloud storage space.
- 3. Open Your Existing Files: Open your locally saved Word, Excel, and PowerPoint files directly in WPS Office without needing any format conversion.
- 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.

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.




