Getting a 403 for /drives/{drive-id}/root/search(q='{q}') using app token

Jack F 0 Reputation points
2026-04-23T05:19:23.01+00:00

Hello,

I'm getting a 403 for a GET request to /drives/{drive-id}/root/search(q='{q}'). I'm using an app token that has the following permissions and it works for GET /drives/{drive-id} and GET /drives/{drive-id}/root/children

  "aud": "https://graph.microsoft.com",
  "roles": [
    "Files.ReadWrite.All",
    "Files.Read.All"
  ],

Documentation (https://learn.microsoft.com/en-us/graph/api/driveitem-search?view=graph-rest-1.0&tabs=http&source=docs) seems to say it should work. Am I missing something?

Microsoft Security | Microsoft Graph
0 comments No comments

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.