Get Doc Library associated with a Group

Akshith Reddy Thalla 100 Reputation points
2024-05-07T15:29:00.86+00:00

I'm trying to Get the document library associated with a group,

GET /groups/{groupId}/drive

as mentioned over here https://learn.microsoft.com/en-us/graph/api/drive-get?view=graph-rest-1.0&tabs=http#get-the-document-library-associated-with-a-group

What exactly is the groupId I have to pass over here?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,891 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,903 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 16,961 Reputation points Microsoft Vendor
    2024-05-08T01:40:56.02+00:00

    Hi @Akshith Reddy Thalla,

    The parameter groupId is the id of a Microsoft 365 group. You can see all your groups via Microsoft 365 admin center >> Active teams & groups.

    User's image

    With the Below Graph API endpoint, we can get Group ID details by group mail.

    https://graph.microsoft.com/v1.0/groups?$filter=mail eq 'XXX'&$select=id,displayName
    

    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.


0 additional answers

Sort by: Most helpful