Microsoft 365 Error Codes

Fix the AADSTS50020 Sign-In Error in Office 365

Natalie TaylorNatalie Taylor Nov 27, 2026 869 views

Question details

The user needs to resolve an AADSTS50020 error when signing in to or activating Office 365 with a university account.

Fix the AADSTS50020 Sign-In Error in Office 365
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.
Before you start

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.

Solution 1Recommended

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.

1
Check the current Office account

Open an Office app such as Word and select File > Account. Check the email address shown under the signed-in account.

2
Switch accounts

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.

3
Choose the correct account type

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.

4
Retry activation

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.

Sign in to Office with the correct university or work account
Test in a private browser window: If a browser keeps choosing your personal account, open a private or incognito window and sign in at office.com with your university or work email address.
Free Microsoft Office alternative

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.

Create and edit documents without relying on Office 365 activationOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXWork in a familiar interface for a smoother transitionUse a lightweight office suite with free core features
microsoft office alternative - wps office

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.