What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
No response
Issue description
Sharepoint sites have default Visitor, Member, and Owner groups that tenant users and Microsoft 365 Groups can be added to. We noticed that the Graph API does not list these groups via https://graph.microsoft.com/v1.0/groups, as these groups are treated as Sharepoint site groups and not Microsoft 365 groups. Additionally, we saw that it's possible to retrieve Site Group metadata via a hidden API, https://graph.microsoft.com/v1.0/sites/{siteId}/lists('User Information List')/items, but there appears to be no information on the membership of users within these groups.
Instead, we currently rely on the Sharepoint REST API, via https://<tenant_url>.sharepoint.com/sites/<site_name>/_api/web/SiteGroups?$expand=Users to retrieve this membership information.
Is there any way to retrieve the Site Group membership info via Graph APIs?
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
No response
Issue description
Sharepoint sites have default Visitor, Member, and Owner groups that tenant users and Microsoft 365 Groups can be added to. We noticed that the Graph API does not list these groups via
https://graph.microsoft.com/v1.0/groups, as these groups are treated as Sharepoint site groups and not Microsoft 365 groups. Additionally, we saw that it's possible to retrieve Site Group metadata via a hidden API,https://graph.microsoft.com/v1.0/sites/{siteId}/lists('User Information List')/items, but there appears to be no information on the membership of users within these groups.Instead, we currently rely on the Sharepoint REST API, via
https://<tenant_url>.sharepoint.com/sites/<site_name>/_api/web/SiteGroups?$expand=Usersto retrieve this membership information.Is there any way to retrieve the Site Group membership info via Graph APIs?