ItemNotFound on /me/drive/root/children (MSGraph)

Gabriel Gaudina 0 Reputation points
2024-07-29T14:15:34.9+00:00

Hi,

I have two accounts that I use to access Office365 and the MSGraph API. However, one of them responds with an "ItemNotFound" error when I access "https://graph.microsoft.com/v1.0/me/drive/root/children". What permissions or configurations should I check?

Thanks in advance.

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,484 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 100.3K Reputation points MVP
    2024-07-29T15:56:14.2066667+00:00

    You need the Files.Read permission at minimum, and of course you need to have an actual OneDrive (either the consumer version or OneDrive for Business).

    0 comments No comments