API permissions in client app to call Graph search api for microsoft.graph.driveItem

110 Views Asked by At

What API permissions does Azure AD client app needs to get token for calling Graph search for microsoft.graph.driveItem ? https://learn.microsoft.com/en-us/graph/search-concept-files

According to the documentation I only need the following permissions:

Sites.Read.All, Sites.ReadWrite.All

But, when i use token returned , it doesnt work

enter image description here

1

There are 1 best solutions below

0
Lee On

Should be below one based on my testing.

enter image description here

enter image description here

official documentation