Forum Discussion
Ralf Friedrich
Mar 14, 2018Copper Contributor
How to get the site collection List using REST or CSOM?
Hi all,
we would like to get a list of all site collections using REST or CSOM with JavaScript. We used the REST call /_api/search/query? querytext=' contentclass: sts_site' &trimduplicates=fal...
Deleted
Mar 14, 2018What url are you using in front of your api? are you using https://tenantname-admin.sharepoint.com/api or?
Ralf Friedrich
Mar 14, 2018Copper Contributor
I use https://tenantname.sharepoint.com/_api/ because the user should not have access to the administration.