Microsoft Account Errors

Fix Microsoft Graph OAuth Account Not Found for OneDrive Business

Emma BrownEmma Brown Nov 13, 2026 869 views

Question details

The user needs to authenticate a Microsoft Graph OAuth app for a OneDrive for Business account after personal OneDrive authentication works but the business account returns an account not found error.

Fix Microsoft Graph OAuth Account Not Found for OneDrive Business
Product
Microsoft Graph API and OneDrive for Business
Device & OS
not provided
Scenario
Integrating an application with Microsoft Graph OAuth for OneDrive for Business access, with existing personal OneDrive authorization working correctly.
Observed behavior
The business account sign-in returns an account not found error because the authorization request uses the consumer Microsoft account endpoint instead of the work or school endpoint.
Before you start

Before changing the OAuth endpoint, confirm that the failing sign-in uses a work or school account and have the Azure app registration and tenant ID available. Gather the current authorization URL and redirect URI from the application configuration.

Solution 1Recommended

Use the Microsoft identity platform work or school account endpoint

Use this when a personal OneDrive OAuth flow works, but a business account returns account-not-found in Microsoft Graph.

The account-not-found error commonly means that the OAuth request is sent to the consumer Microsoft account authority. Work and school accounts must use the organizations or tenant-specific Microsoft identity platform endpoint.

1
Open your OAuth configuration

In your application's authentication settings, locate the Microsoft Graph authorization URL currently used for sign-in.

2
Replace the consumer endpoint

Change the authorization endpoint from the consumer Microsoft account endpoint, such as https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize, to the organizations endpoint or your tenant-specific endpoint, for example https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize or https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize.

3
Update the token endpoint

Use the matching token endpoint for the same authority, such as https://login.microsoftonline.com/organizations/oauth2/v2.0/token, and save the configuration.

4
Test with a business account

Start a new sign-in flow and sign in with a work or school account that has OneDrive for Business access to confirm the account-not-found error is resolved.

Use the Microsoft identity platform work or school account endpoint
Expected result: The business account is recognized and the OAuth flow continues to the Microsoft Graph consent screen.
Free Microsoft Office alternative

Work with OneDrive Business files in WPS Office without Graph OAuth setup

WPS Office does not change Microsoft Azure AD or Graph API tenant configuration. For document work, WPS Office is a free, lightweight Microsoft Office alternative that opens, edits, and saves Office files with familiar ribbon tools and strong format compatibility, so you can keep working while resolving your Microsoft account error.

Avoid Microsoft Graph OAuth errors for daily document editing by opening files directly in WPS OfficeFull compatibility with Microsoft Word, Excel, and PowerPoint file formats such as .docx, .xlsx, and .pptxLightweight and free Office suite with a familiar ribbon interface for a short learning curveSeamless migration of existing Office documents and OneDrive-synced files for local or cloud editingNo Microsoft work or school account endpoint configuration required to create, edit, or share Office files
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Graph return account not found only for OneDrive for Business?

Usually the OAuth authorization URL uses the consumer Microsoft account endpoint. Work and school accounts must use the organizations or tenant-specific Microsoft identity platform endpoint.

Which endpoint should I use for OneDrive for Business OAuth?

Use the organizations endpoint, such as https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize, or a tenant-specific endpoint with your tenant ID instead of the consumer endpoint.

Do OneDrive for Business Graph permissions require admin consent?

Yes, delegated permissions such as Files.ReadWrite.All or Sites.ReadWrite.All usually require admin consent in the Azure app registration before users can access OneDrive for Business.

Can WPS Office fix my Azure AD or Graph API tenant configuration?

No, WPS Office cannot change Microsoft Azure AD or Microsoft Graph tenant configuration. It is a free Office alternative for opening and editing Office documents while you resolve the account error.

What should I check if the business account still fails after changing the endpoint?

Check the Azure app registration redirect URI, supported account types, delegated permissions, admin consent, and OneDrive for Business scopes, then contact Azure Support if the tenant configuration continues to fail.