How to get sharepoint site default group like oweer, visitor and member name and its user using Graph API

Gitanjali Katkamwar 20 Reputation points
2023-02-16T11:25:59.08+00:00

We have requirement to get the sharepoint sites default group like visitor, Members and Owners group user details using Graph API .

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
Microsoft 365 and Office SharePoint Server Development
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-02-17T02:13:30.3533333+00:00

    Hi @Gitanjali Katkamwar

    By default, MS Graph API has not exposed such endpoints to access SharePoint site groups. I will recommend you to access User information list that stores users (including groups) information. Please refer to the following endpoint

    https://graph.microsoft.com/v1.0/sites/{siteid}/lists/User Information List/items?expand=fields

    Reference doc:

    Here is the test result

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Aarts, Jan 16 Reputation points
    2023-07-20T09:27:31.0066667+00:00

    @RaytheonXie_MSFT

    I found the needed users but is there a way to link them to the found groups?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.