Microsoft 365 Error Codes

How to Fix AADSTS9002313 Invalid Request Error When Signing In to Office

Natalie TaylorNatalie Taylor Nov 3, 2026 869 views

Question details

The user is unable to sign into Microsoft Office desktop applications and is receiving an invalid request error message, despite browser sign-in working perfectly.

How to Fix AADSTS9002313 Invalid Request Error When Signing In to Office
Product
Microsoft 365 / Office desktop applications
Device & OS
Windows 7
Scenario
Attempting to sign into Microsoft Office desktop applications like Outlook, Excel, or Word to authenticate the account and use the software.
Observed behavior
The application displays the error code AADSTS9002313 with the message 'Invalid request. Request is malformed or invalid,' preventing successful login.
Before you start

Ensure that your internet connection is stable and verify that you have administrative privileges on your Windows computer, as you will need to modify system credentials and settings.

Solution 1Recommended

Clear Credentials and Reset Office Activation State

This removes corrupted login tokens and forces Office to establish a fresh connection with Microsoft's authentication servers.

When Office desktop apps fail to sign in but the web versions work, the issue is typically caused by corrupted local credential tokens or an outdated activation state.

1
Sign out of all Office applications

Open any Office app like Word or Excel, click on your profile picture or name in the top right corner, and select 'Sign Out'. Close all Office applications.

2
Clear the Credential Manager

Click the Start menu, type 'Credential Manager', and open it. Go to 'Windows Credentials' and remove all credentials that start with 'MicrosoftOffice'.

3
Delete Office identity registry keys

Press Win + R, type 'regedit', and hit Enter. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity. Right-click the 'Identity' folder and delete it.

4
Restart and sign in

Restart your computer, open an Office application, and try signing in again with your Microsoft 365 account.

Registry Editor Warning: Modifying the registry incorrectly can cause system issues. Ensure you only delete the specific 'Identity' folder mentioned above.
Free Microsoft Office alternative

Try WPS Office as a Lightweight Alternative for Older Windows Versions

If Microsoft 365 no longer supports your Windows 7 device or you are frustrated by persistent sign-in errors, WPS Office is an excellent, free alternative. It provides seamless compatibility with Microsoft formats without requiring complex activation processes or modern OS authentication.

  1. 1. Download the installer: Visit the official WPS website and click the free download button.
  2. 2. Install the software: Run the downloaded executable file and follow the quick installation prompts.
  3. 3. Open and edit your files: Launch WPS Office and open your existing .docx, .xlsx, or .pptx files immediately without activation hassles.
Completely free to use with a lightweight installationHigh compatibility with Microsoft Word, Excel, and PowerPoint formatsRuns smoothly on older operating systems like Windows 7 and Windows 10Familiar user interface for a quick and seamless transitionDoes not require complex cloud authentication to edit local files
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Office sign-in work in my browser but not in the desktop app?

Desktop applications rely on specific authentication protocols (like ADAL) and locally stored credential tokens. If the local credential manager is corrupted, or if an outdated operating system blocks modern authentication, desktop apps will fail to sign in even while browser-based sessions, which handle authentication independently, work fine.

Can I still run Microsoft 365 on Windows 7?

While older, already-installed versions of Microsoft 365 might technically open on Windows 7, official support ended in January 2020. You will no longer receive feature updates, and you are highly likely to encounter persistent connectivity and sign-in errors such as AADSTS9002313.

What should I do if clearing the Credential Manager doesn't fix the AADSTS9002313 error?

If clearing credentials does not resolve the issue, you should reset the Office activation state by deleting the 'Identity' registry keys associated with Office. Alternatively, create a new Windows user profile to verify if the issue is tied to corruption in your current local account profile.