Get Doc Library associated with a Group

Akshith Reddy Thalla 100 Reputation points

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

GET /groups/{groupId}/drive

as mentioned over here

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
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

    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.$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