0

Using the graph API or sharepoint REST APIs, is there a way to obtain, for each site, the list of users/o365 groups that are allowed read access to the site?

We are able to obtain the list of sites using the graph API GET /sites?search=* but cannot find a way to get the list of users allowed to access each site (except for Sharepoint team sites associates with o365 groups that we can enumerate using GET /groups/{group-id}/sites API call.

We are building a server side application so need to do this from the server using application-level permissions, and not from the client.

Pointers for how to do this are greatly appreciated!

  • Looks like there is no such ebdpoint that gets the site permissions and there are few uservoices [here](https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests?query=get%20permissions%20to%20site) that are close to your scenario. Please upvote them so that it could be developed by the product team in future – Shiva Keshav Varma Nov 09 '20 at 11:53
  • Moving this to Answer. – Shiva Keshav Varma Dec 03 '20 at 11:20

1 Answers1

0

Looks like there is no such endpoint that gets the site permissions and there are few uservoices here that are close to your scenario. Please upvote them so that it could be developed by the product team in future.

Shiva Keshav Varma
  • 3,398
  • 2
  • 9
  • 13
  • 1
    There is none appropriate. I added a uservoice for this - https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/42129535-graph-api-to-fetch-the-permissions-for-a-sharepoin – Vishwanath T R Dec 05 '20 at 06:09
  • Hi is there a SOAP API that returns this info? – Vishwanath T R Jan 09 '21 at 19:37