Unexpected "Access Denied" from Graph API list-children request

Arq Support 5 Reputation points
2024-07-01T21:37:34.2766667+00:00

Our client has a personal OneDrive account with a folder called "Arq Backup Data" in it. The account is currently over quota.

This request:

GET https://graph.microsoft.com/v1.0%2Fme%2Fdrive%2Froot%3A%2FArq%20Backup%20Data%3A%2Fchildren?top=1000

returns "Access Denied" for some reason. We can't figure out why. The full JSON response is:

{"error":{"code":"accessDenied","message":"Access Denied","localizedMessage":"This item might have been deleted, expired, or you might not have permission to access it. Contact the owner of this item for more information.","innerError":{"date":"2024-06-26T14:30:54","request-id":"c304db39-2da5-4647-bff5-d68586fb748f","client-request-id":"ee99e8f6-248a-42cd-84bf-994d71af3dc3"}}}

I understand it's not possible to create or edit files when over quota, but why are we getting "access denied" for listing children of a folder?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,223 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 42,211 Reputation points
    2024-07-02T08:23:33.0666667+00:00

    Hi @Arq Support

    Does the logged in user have Files.Read.All permission? Try logging in to Graph Explorer with your personal account and calling the endpoint again.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.