Open Marian-Kechlibar opened 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.
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.