Fix the AADSTS50020 Sign-In Error in Office 365
Question details
The user needs to resolve an AADSTS50020 error when signing in to or activating Office 365 with a university account.

- Product
- Microsoft Office 365
- Device & OS
- not provided
- Scenario
- A user has personal and university Microsoft identities and needs to activate or sign in to Office with the account provided by their organization.
- Observed behavior
- Office displays an AADSTS50020 sign-in error when an identity is not recognized or permitted in the organization being accessed.
Identify the work or university email address assigned to you and have its sign-in credentials ready. If the error page shows an organization name, note it so you can verify that you are signing in to the intended organization.
Sign in to Office with the correct university or work account
Use this method when Office selects a personal Hotmail account instead of your organization account.
Open an Office app such as Word and select File > Account. Check the email address shown under the signed-in account.
If the wrong account is signed in, select Sign out or Switch account on the Account page. Then choose Sign in and enter your university or work email address.
If Microsoft asks which type of account to use, select Work or school account rather than Personal account. Complete any verification requested by your organization.
Return to File > Account and check the product status. If prompted, select the activation or sign-in option and use the same university or work account.

Ask your organization to check account access and licensing
Use this method if the correct work or university account still produces the error.
Use WPS Office as an Alternative for Everyday Documents
WPS Office is a free, lightweight, easy-to-use alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move existing documents. It does not resolve Microsoft account or organization access errors.

Frequently Asked Questions
What does AADSTS50020 mean?
It generally means the account used to sign in is not recognized or permitted in the Microsoft organization being accessed. Check the account and organization shown on the error page.
Can I use my Hotmail account to activate university Office 365?
Use the account your university assigned for Office access, unless your institution specifically directs you otherwise. A personal Hotmail account is separate from a work or school identity.
Why does Microsoft keep signing me in with the wrong account?
A saved browser session may select a previously used account. Open a private or incognito window, go to office.com, and enter your work or university email address.
What should I do if my university account still gets the error?
Send the error message, request ID, correlation ID, and timestamp shown on the sign-in page to your IT help desk. Ask them to check your organization access and Office license.




