Error 4xx when accessing SharePoint via Microsoft Graph in specific tenants- Stops working

Ignacio Zafra Jiménez 11 Reputation points
2025-05-09T12:19:26.86+00:00

Since a couple of days, we have realized our Files operations with Sharepoint Sites stop to work with some tenants. We don't have problems accesing OneDrive.

We use Application Permissions in MsGraph, with following Scopes / API Permissions:

  • Files.ReadWrite.All (this should be enough)
  • Sites.Manage.All
  • Sites.ReadWrite.All

We can make a call to get Sharepoint properties:

https://graph.microsoft.com/v1.0/sites/{hostname}:/{server-relative-path}

Sites.ReadWrite.All permission needed for this.

But if i try to list this existing Sharepoint, we get this error in some tenants, with no configuration change on them:

https://graph.microsoft.com/v1.0/sites/{hostname}:/{server-relative-path}/drive/root/children

User's image

What configurations in Sharepoint could prevent accesing via MsGraph, when it's possible to access personal OneDrive? Is an error in configuration, domain policy or an error in some Microsoft Tenants?

IS there any channel for paid support from Microsoft for this?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,613 questions
{count} vote

Your answer

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