locked
get members of Communication Site with Graph API RRS feed

  • Question

  • I could not get the members of Root Site and Communication Site because these sites have not belong to any Group using this Graph API:

    https://graph.microsoft.com/v1.0/groups/{id}/members

    Is there any Graph Endpoint support to get members in the target site ?

    Any help is welcome.

    Thanks in advance.

    Wednesday, July 15, 2020 4:36 AM

Answers

  • Hi developer sp,

    You will need to use SharePoint Rest API instead of Graph API. As in SharePoint site, there is no Office 365 Group inside site:

    /_api/Web/SiteGroups/GetByName('SiteName Members')/users

    Reference:

    REST API - Retrieve Group Members

    Thanks

    Best Regards


    "SharePoint" forums will be migrating to a new home on Microsoft Q&A !
    We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !

    • Marked as answer by developer sp Wednesday, July 15, 2020 12:55 PM
    Wednesday, July 15, 2020 9:49 AM