Share via

"Tenant does not have a SPO license" error on Graph API despite active SharePoint Online licenses

LegalAtoms 0 Reputation points
2026-02-27T06:52:34.6833333+00:00

We are calling the Microsoft Graph API using application-level (client credentials) authentication. All requests to any SharePoint/OneDrive endpoint return:

{
  "code": "BadRequest",
  "message": "Tenant does not have a SPO license."
}

This persists despite SharePoint Online being fully provisioned and accessible via browser.

API details:

What we've verified:

  1. The user has SharePoint (Plan 1) and Microsoft 365 Business Basic licenses assigned — both show Active in Entra Admin Center
  2. The SharePoint admin center (*.sharepoint.com) loads successfully
  3. The user's OneDrive (*-my.sharepoint.com) loads successfully in browser and shows storage allocated (1 TB)
  4. Token acquisition succeeds — the app gets a valid JWT with "roles": ["Files.ReadWrite.All"]
  5. Admin consent has been granted for the app
  6. The error occurs on every SharePoint/OneDrive Graph endpoint, including GET /sites/root and GET /users/{id}/drive — not just file operations
  7. We have waited 30+ minutes since license assignment and SPO provisioning with no change
  8. This is a work/school account, not a personal Microsoft account

Sample request-ids from failed Graph calls

  • [Moderator note: UUID removed]
  • [Moderator note: UUID removed]
  • [Moderator note: UUID removed]
Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kudos-Ng 14,515 Reputation points Microsoft External Staff Moderator
    2026-02-27T09:04:31.5166667+00:00

    Hi LegalAtoms,

    Thank you for posting your question in the Microsoft Q&A forum and for the thorough details you shared.

    Please note that our forum is a public platform, and we will modify your question to hide your request IDs in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.

    It looks like you’ve already troubleshot and verified the required conditions (licenses assigned/active, SPO/OneDrive accessible in the browser, admin consent granted, app-only token issued successfully), yet you’re still consistently hitting the same “Tenant does not have a SPO license” error across SharePoint/OneDrive Graph endpoints.

    From what I found in similar reports, using an application (app-only) token can follow a different backend path than a delegated/user context, and it’s possible something is going wrong in that provisioning/validation path even when the interactive experience looks fine.

    However, I regret to inform you that this is a user-to-user support forum. The moderators, contributors, and external Microsoft employees participating here do not have access to backend systems, nor do we have the ability to escalate cases or intervene directly in Microsoft product features. Our role is limited to providing technical guidance and sharing best practices based on reported issues, requests, or ideas.

    Therefore, to get Microsoft support involved, I recommend creating a support ticket via your Azure portal and providing the tenant_id along with the request_ids you captured so they can investigate more deeply on the backend.

    In the meantime, here’s one suggestion you can try: if your app registration supports multitenant account types, you can test requesting the token using the /common authority instead of /{tenant_id} (as a diagnostic) to see whether the issue still persists.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.