How to Fix OneDrive Error AADSTS50020 After a School Account Change
Question details
A user is unable to access their OneDrive files after a school account change, receiving error code AADSTS50020 which prevents login.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to log into a school OneDrive account to retrieve saved work after the institution made changes to the account.
- Observed behavior
- The system blocks access and displays Error AADSTS50020, stating that the identity provider account does not exist in the organization's Microsoft Entra ID tenant.
Before proceeding, confirm that you are using the exact, most up-to-date email address provided by your school, and verify whether your student enrollment status has recently changed.
Contact Your IT Administrator for Tenant Assignment
This is a server-side permission issue that can only be resolved by the organization's Microsoft 365 administrator adding your account to the directory.
Error AADSTS50020 occurs because your specific account credential is not registered in the school's Microsoft Entra ID (formerly Azure Active Directory) tenant. Without this registration, the system automatically blocks access to organizational assets like OneDrive.
Write down your exact student or staff email address, your ID number, and take a screenshot of the AADSTS50020 error message.
Reach out to your school's IT support or Microsoft 365 Administrator via phone, an alternative email, or an in-person visit.
Explicitly request that the administrator verify your account exists in the Microsoft Entra ID tenant and that you have been assigned an active Microsoft 365 license with OneDrive access.

Clear Conflicting Account Credentials
Clear out any previously cached personal or old school Microsoft accounts that might be causing an automatic login attempt to the wrong tenant.
Try WPS Office for Free and Local File Management
If you are locked out of your school's cloud-based Microsoft 365 account due to tenant errors, consider switching to WPS Office. It is a completely free, lightweight alternative that allows you to create, edit, and save documents locally on your device, ensuring you never lose access to your important work.

Frequently Asked Questions
What does Error AADSTS50020 mean?
This error signifies that the Microsoft account you are attempting to sign in with is not recognized by the organization's Microsoft Entra ID tenant. Essentially, the system does not recognize you as an authorized user for that organization.
Will using a different web browser fix Error AADSTS50020?
No, switching web browsers will not resolve the issue if your account has genuinely been removed from or not added to the directory. It is a server-side authorization block. A new browser only helps if your old browser was auto-filling incorrect login details.
How can I recover my school OneDrive files if I am locked out?
If your files are stored within the school's Microsoft 365 infrastructure, only the organization's tenant administrator can restore your access or retrieve those files for you. You must escalate the issue with the IT department or administrative staff.
Why did this error happen after my school account changed?
When an institution updates accounts, merges email domains, or changes your enrollment status, your digital identity may fail to sync correctly with their active directory. This instantly revokes your permissions to access school resources like OneDrive.




