0

We use the graph API from Microsoft to get the details about site, drives, files, folder, etc.

The graph API works as expected and returns the results for those queries.

However, If I try to get the permissions using /sites/{site_id}/permissions endpoint I get:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('{site_id}')/permissions",
    "value": []
}
7
  • Are you trying it with Sites.FullControl.All permissions? Check this documentation: learn.microsoft.com/en-us/graph/api/…. Let me know if it works for you. Commented Mar 14, 2023 at 7:08
  • I see. I was trying this with the Sites.Selected permission. Commented Mar 14, 2023 at 8:09
  • Is it working for you now with Sites.FullControl.All? Commented Mar 14, 2023 at 8:11
  • I am yet to try this. I currently was having only the Sites.Selected access. I was trying to have a workaround to check the folder/file level permissions for the SharePoint App-Only (without delegated access). I found that this might not be possible with the current version of the SharePoint and even with the Graph APIs Commented Mar 14, 2023 at 8:14
  • Sure, try it and let me know if it works or still facing same issue. Commented Mar 14, 2023 at 8:17

1 Answer 1

0

You are using correct Microsoft Graph endpoint:

https://graph.microsoft.com/v1.0/sites/{sitesId}/permissions

However, you will need below Graph permissions to list SharePoint site permissions:

enter image description here

Documentation: List permissions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.