Skip to content

Is it possible to retrieve Site Group memberships via Graph API?  #8534

@rick-scio

Description

@rick-scio

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions