Fix Microsoft Graph OAuth Account Not Found for OneDrive Business
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.

- 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 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.
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.
In your application's authentication settings, locate the Microsoft Graph authorization URL currently used for sign-in.
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.
Use the matching token endpoint for the same authority, such as https://login.microsoftonline.com/organizations/oauth2/v2.0/token, and save the configuration.
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.

Verify Azure app registration and OneDrive for Business permissions
Use this if the endpoint is already correct or if authentication still fails after changing it.
Contact Azure Support for tenant-specific failures
Use this if the endpoint and Azure app registration are correct, but the tenant configuration still returns account-not-found.
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.

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.




