How can I get SharePoint site group members using Graph API?

Lauren A. Weisenfluh 96 Reputation points
2021-04-12T23:07:18.61+00:00

I am trying to obtain all members of a SharePoint Site security group via Microsoft Graph API. I've been able to access our site's User Information List and locate the specific SP security group in the User Information List. However, I cannot expand the item to see who is in the SharePoint Site security group. How can I obtain SP site group members using Graph API? Is it possible to expand that item from the User Information List? Any insight is welcome! Thank you.

proc http url="https://graph.microsoft.com/v1.0/sites/root/lists/{User Information List ID}/items/{item ID, 5831 in this example}?expand=fields"
oauth_bearer="&access_token"
out=items;
run;

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,571 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lauren A. Weisenfluh 96 Reputation points
    2021-06-16T16:20:54.237+00:00

    Hi there, I ended up setting up a flow in Power Automate to pull the SP security group and populate a SP list with the member IDs (see URL below). Then you can use SAS via Microsoft Graph API to retrieve the member IDs from the list. Hope that helps!

    https://www.c-sharpcorner.com/article/how-to-get-users-from-a-sharepoint-group-in-ms-flow/

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Danstan Onyango 3,741 Reputation points Microsoft Employee
    2021-04-14T13:58:35.853+00:00

    Have a look at list group members for M365 or Security group members.


  2. Newton Sandey Oliveira Reis 1 Reputation point
    2021-06-16T15:10:46.7+00:00

    @Lauren A. Weisenfluh do you managed to get a solution?

    0 comments No comments