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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,267 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,159 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,784 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,594 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 33,251 Reputation points Microsoft Vendor
    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?