Fix OneDrive Sign-In Error AADSTS50020 in Windows 11
OneDrive makes it easy to store files online, access documents from different devices, and keep your important data synchronized. However, sometimes you may run into a sign-in problem that prevents you from accessing your OneDrive account on a Windows 11 computer.
One common issue is the AADSTS50020 sign-in error. This error usually appears when you try to sign in to OneDrive using a Microsoft account that isn’t recognized or authorized in the organization or tenant you’re trying to access.
You might see an error message similar to this:
AADSTS50020: User account from identity provider does not exist in tenant and cannot access the application in that tenant.
This can happen when you’re using the wrong Microsoft account, switching between personal and work accounts, signing in with an outdated account, or trying to access an organization that hasn’t added your account as a guest.
In this guide, we’ll walk through the solutions step by step, even if you’re new to Windows 11.
Fix OneDrive Sign-In Error AADSTS50020 in Windows 11

To fix the OneDrive sign-in error AADSTS50020 in Windows 11, first verify that you’re using the correct Microsoft account. Next, sign out of other Microsoft accounts, clear conflicting browser sessions, remove outdated Windows credentials, and restart OneDrive. If you’re using a work or school account, ask your Microsoft 365 administrator to verify that your account exists in the correct organization and has permission to access OneDrive.
Try the following methods in order. After completing each method, attempt to sign in to OneDrive again.
1: Check Whether You’re Using the Correct Microsoft Account
The first thing you should check is whether you’re signing in with the correct Microsoft account.
AADSTS50020 commonly occurs when you attempt to access a Microsoft 365 organization using an account that belongs to a different organization or is not registered in that tenant.
For example, you might have a personal Outlook account and a separate work account. If OneDrive expects your work account but you enter your personal account, the sign-in process may fail.
Step 1: Open the OneDrive application from the Windows 11 Start menu.
Step 2: When the sign-in window appears, carefully check the email address you’re entering.
Step 3: Make sure you’re using the Microsoft account associated with the OneDrive files you want to access.
Step 4: If you’re using a work or school account, confirm that your organization has provided access to OneDrive.
Step 5: Enter the correct email address and password, and try signing in again.
If you’re unsure which account is connected to your OneDrive subscription, contact your organization’s IT administrator or check your Microsoft account details.
2: Sign Out of Other Microsoft Accounts
Having multiple Microsoft accounts signed in simultaneously can sometimes create authentication conflicts.
For example, Windows might use your personal Microsoft account while OneDrive is attempting to authenticate your work or school account.
You can resolve this by checking your connected accounts.
Step 1: Press Windows + I to open Windows Settings.
Step 2: Select Accounts from the left sidebar.
Step 3: Open Email & accounts.
Step 4: Look under the section showing accounts used by email, calendar, and contacts.
Step 5: Check whether an outdated or incorrect account is listed.
If you find an account you no longer use, select it and choose Manage or Remove, where available.
Be careful when removing accounts. Don’t remove your primary Windows sign-in account or an organization-managed account without understanding the consequences.
Step 6: Restart your computer and open OneDrive again.
Try signing in with the correct account.
3: Sign Out of Microsoft Accounts in Your Web Browser
Sometimes your browser remembers an old Microsoft account or organization session. When OneDrive opens its sign-in page, it may automatically use those saved details instead of asking you to choose an account.
To check whether this is causing the problem, try signing in through a private browsing window.
Step 1: Open Microsoft Edge or Google Chrome.
Step 2: Press Ctrl + Shift + N in Chrome or Ctrl + Shift + N in Edge to open an InPrivate or Incognito window.
Step 3: Visit the official Microsoft OneDrive website if you’re using a personal account. For a work or school account, use your organization’s OneDrive sign-in link.
Step 4: Enter the email address associated with your OneDrive account.
Step 5: Complete the sign-in process and check whether your files are accessible.
If the website works in private browsing but the desktop application still displays AADSTS50020, the problem may be related to cached authentication information on your computer.
4: Remove Old Microsoft Credentials From Credential Manager
Windows Credential Manager stores sign-in information for different applications and services. Sometimes, outdated Microsoft credentials can interfere with the OneDrive authentication process.
Removing the relevant old credentials can help resolve this issue.
Step 1: Press Windows + S to open Windows Search.
Step 2: Type Credential Manager and select the matching result.
Step 3: Click Windows Credentials.
Step 4: Look through the saved credentials for entries related to OneDrive, Microsoft Office, or Microsoft 365.
Step 5: Expand an outdated credential that belongs to the affected account.
Step 6: Select Remove if you’re certain the saved entry is no longer needed.
Avoid removing credentials belonging to other applications or accounts that are working correctly.
Step 7: Restart your computer and open OneDrive.
Enter your correct Microsoft account details and check whether the sign-in error has disappeared.
5: Clear Cached Microsoft Identity Information
If the previous methods don’t work, your Windows computer might still have authentication information from an older Microsoft 365 organization.
This is particularly common when a business moves its Microsoft 365 accounts from one organization to another.
Microsoft specifically identifies cached identities from a previous tenant as a cause of AADSTS50020 in the OneDrive for Business synchronization application.
You can try clearing the affected identity cache.
Step 1: Close OneDrive completely. Right-click its cloud icon in the notification area and select Pause syncing or Quit OneDrive, depending on the available options.
Step 2: Press Windows + R to open the Run dialog box.
Step 3: Enter the following location:
%localappdata%\Microsoft
Step 4: Press Enter.
Step 5: Look for the folders named OneAuth and IdentityCache.
Step 6: If you’re troubleshooting a OneDrive for Business account, and the previous methods haven’t worked, follow Microsoft’s instructions to remove the contents of these folders.
Close Microsoft Office applications first. Removing cached authentication information can require you to sign in again to Microsoft applications.
Step 7: Restart Windows and open OneDrive.
Try signing in with your current work or school account.
If you use multiple Microsoft 365 accounts, be aware that clearing these caches may affect their saved sign-in sessions too.
6: Remove the Old Microsoft Office Identity From the Registry
If you’re still experiencing AADSTS50020, an outdated Office identity entry in the Windows Registry could be responsible.
Microsoft recommends removing a specific registry entry to address this error in OneDrive for Business, particularly after a tenant migration.
However, editing the Registry incorrectly can cause Windows or application problems. Follow these instructions carefully.
Step 1: Press Windows + R.
Step 2: Type regedit and press Enter.
Step 3: If Windows displays a User Account Control prompt, select Yes.
Step 4: In Registry Editor, navigate to this location:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
Step 5: Before making changes, right-click the Identity folder and select Export. Save the backup somewhere you can easily find it.
Step 6: Once you’ve created the backup, right-click the Identity folder and select Delete.
Step 7: Close Registry Editor and restart your computer.
Step 8: Open OneDrive and try signing in again.
This procedure removes cached Office identity information, so you may need to authenticate again in Microsoft 365 applications.
Important: This registry procedure is specifically documented for OneDrive for Business. Don’t delete unrelated registry entries or apply it casually to a personal OneDrive account.
7: Ask Your Microsoft 365 Administrator to Verify Your Account
If you’re using OneDrive for Business or a school account, the problem might not be with your Windows 11 computer.
Your Microsoft Entra organization may not recognize your account, or your administrator may not have granted you access to the required application.
This is especially important if you’re trying to access files shared by another organization.
Ask your IT administrator to check the following settings.
Step 1: Ask the administrator to sign in to the Microsoft Entra admin center.
Step 2: Open Identity > Users > All users.
Step 3: Ask them to search for your email address and confirm that your account exists in the correct organization.
Step 4: If you’re an external guest user, ask the administrator to check whether you’ve been invited successfully.
Step 5: Ask them to verify whether your account has been assigned access to the required enterprise application.
Step 6: If necessary, ask them to resend your guest invitation or correct your account permissions.
Once your administrator confirms that your account has the necessary permissions, sign out of OneDrive and try again.
Microsoft identifies missing guest invitations, incorrect tenant selection, and application assignment restrictions as possible causes of AADSTS50020.
8: Reset the OneDrive Application
If you’ve corrected the account and authentication issues but OneDrive still doesn’t sign in properly, resetting the application is another troubleshooting option.
This can help resolve problems caused by corrupted local application settings.
Step 1: Press Windows + R to open the Run dialog.
Step 2: Copy and paste this command:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
Step 3: Press Enter and wait for the reset process to finish.
Step 4: If the OneDrive cloud icon doesn’t appear after a few minutes, press Windows + R again.
Step 5: Enter the following command:
%localappdata%\Microsoft\OneDrive\onedrive.exe
Step 6: Press Enter to launch OneDrive again.
Step 7: Open the OneDrive application and complete the sign-in process using the correct Microsoft account.
Remember that resetting OneDrive can temporarily stop synchronization while the application reconnects and checks your files. Your online files aren’t deleted by this reset.
Faqs
1. What does OneDrive error AADSTS50020 mean?
AADSTS50020 means Microsoft Entra ID cannot recognize or authorize the account in the organization you’re trying to access. It can happen because of an incorrect account, missing guest invitation, wrong tenant, or outdated authentication information.
2. Can AADSTS50020 occur because of multiple Microsoft accounts?
Yes. Using multiple personal, work, or school accounts can cause authentication conflicts. Try signing out of unnecessary accounts and signing in with the correct OneDrive account.
3. Will resetting OneDrive delete my files?
No. Resetting OneDrive doesn’t delete your cloud files. However, synchronization may pause temporarily while the application reconnects and checks your folders.
4. Why does OneDrive work in my browser but not in the desktop application?
This can happen when the desktop application has outdated authentication credentials or cached Microsoft identity information. Try clearing the relevant cached credentials and restarting OneDrive.
5. Should I delete the Microsoft Office Identity registry entry?
Only consider this when you’re troubleshooting the documented OneDrive for Business tenant-related issue. Back up the Registry first, and avoid deleting unrelated entries.
6. Can my Microsoft 365 administrator fix AADSTS50020?
Yes. Your administrator can check your account, guest invitation, tenant membership, and application permissions. If the issue is organization-related, administrator assistance may be necessary.
