Forum Discussion
Tyrif321
Jul 04, 2023Copper Contributor
Microsoft Graph API V1 Sites.Selected Search Param
What I want: I want to be able to retrieve the sites and sub-sites using Graph API using a single API call and with Sites.Selected permission. I would love for search to be security trim to a selected set of site collections, and I can perform https://graph.microsoft.com/v1.0/sites/{site-id}/sites?search=* without having to recursively call each site and subsites as this increases the API calls.
Current functionality: This can be achieved by using Sites.Read.All paired with the search param.
Issues: However, using Sites.Read.All give the applications access to site collections outside of the scope of Sites.Selected. No single application should have access to all sites within an organization if it was not intended.
No RepliesBe the first to reply