microsoftgraph / msgraph-sdk-php

Microsoft Graph Library for PHP.
Other
551 stars 141 forks source link

Missing programmatic endpoint for a team's root site #1501

Open Marian-Kechlibar opened 2 months ago

Marian-Kechlibar commented 2 months ago

The following endpoint

'https://graph.microsoft.com/v1.0/groups/' . $entityId . '/sites/root/'

which, for a Group that is a Microsoft 365 group, returns details of that team's root Sharepoint site, cannot be accessed programatically, only through

$context->groups()->byGroupId($entityId)->byUrl('https://graph.microsoft.com/v1.0/groups/' . $entityId . '/sites/root/')

There is a function sites()->getAllSites(), but it returns a bunch of sites without distinguishing which one is the root Sharepoint site of the group.