When I use the MS Graph API and call https://graph.microsoft.com/v1.0/sites?search=
, I get this response
{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites", "value": [] }
request-id →cfb68a16-eb50-42ab-950c-fbfeec4def5c
But I am able to get the root site details using https://graph.microsoft.com/v1.0/sites/root
with response
{ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites/$entity", "createdDateTime": "2014-12-03T12:55:35.73Z", "description": "", "id": "fake.sharepoint.com,2d114e0b-41de-4069-b821-6f48b3f58dcb,25f9f0b9-d0bc-4c8b-aee8-03d9ed04532d", "lastModifiedDateTime": "2018-04-17T09:59:59Z", "name": "", "webUrl": "https://fake.sharepoint.com", "displayName": "Fake Team Site", "root": {}, "siteCollection": { "hostname": "fake.sharepoint.com" } }
request-id →6635a7a2-babb-4473-9057-d467c4f1eaaa
Shouldn't the /sites?search=
return ALL the sites within the tenant?