3

We have a multi-geo tenant and we want to get all Site Collections across all locations. Currently, we try to use the next SharePoint REST API endpoint:

https://tenant.sharepoint.com/_api/search/query?querytext='contentclass:sts_site+NOT+WebTemplate:SPSPERS'&trimduplicates=false&selectproperties='Path'"

However, it returns me a list of sites in the default Geo-location. What should I use to list sites based on other available Geo-Locations?

  • Is the query provided here useful: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-discovery ? URLs from all geo-locations are retrieved – Casper Dijkstra Nov 24 '20 at 15:31
  • The MS Graph request beta/sites?filter=siteCollection/root%20ne%20null&select=webUrl,siteCollection just gives you the root site for each Geo-Location – Roman Slivinskyi Nov 25 '20 at 15:58

0 Answers0