Fix Microsoft 365 AADSTS165000 Sign-In Error in Internet Explorer 11
Question details
The user needs to resolve an AADSTS165000 error when signing in to Microsoft 365 through Internet Explorer 11.

- Product
- Microsoft 365 and Internet Explorer 11
- Device & OS
- not provided
- Scenario
- Signing in to portal.microsoftonline.com through an organizational account.
- Observed behavior
- Internet Explorer 11 reports that the request tokens do not match the user context, while other browsers work normally.
Confirm that the same account can sign in through a supported browser, and note the exact error message and time of the failed attempt. Ask your Microsoft 365 administrator whether your organization uses AD FS or a third-party single sign-on provider.
Sign in to Microsoft 365 with a supported browser
Use a supported browser when the error occurs only in Internet Explorer 11.
Microsoft 365 apps and services no longer support Internet Explorer 11. Using a supported browser is the best first step, but it does not diagnose an underlying AD FS or SSO configuration issue.
Open Microsoft Edge or another browser supported by Microsoft 365.
Go to https://portal.microsoftonline.com and sign in with the same organizational account.
If sign-in works in the supported browser but fails in Internet Explorer 11, use the supported browser and share the comparison with your administrator if further investigation is needed.

Investigate the AD FS or third-party SSO configuration
Use this approach when your organization needs to investigate the token mismatch or sign-in also fails in a supported browser.
Work on Office Documents with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easy to move existing documents into your workflow. It does not fix Microsoft 365 sign-in or SSO errors.

Frequently Asked Questions
What does AADSTS165000 mean?
In this case, the error says the request tokens do not match the user context during sign-in. Your administrator may need to investigate the browser session and the organization's AD FS or third-party SSO provider.
Why does sign-in work in another browser but not Internet Explorer 11?
The behavior points to a browser-specific or sign-in integration issue, but it does not identify the exact cause. Microsoft 365 apps and services no longer support Internet Explorer 11, so try signing in at portal.microsoftonline.com with a supported browser.
Who should investigate if my organization uses a third-party SSO provider?
Contact your IT administrator or the SSO provider's support team. Provide the error code, affected account, browser, and time of the failed attempt without sharing passwords or authentication tokens.
What information should I provide for an AD FS investigation?
Give your administrator the AD FS version, affected computer and account, operating system, browser, exact error message, and sign-in time.




