
I want to get all group name using graph API ?

I want to get all group name using graph API ?
Hi @DnyaneshwarSurywanshi-0008,
By default, MS Graph API has not exposed such endpoints to access SharePoint site groups. But you can consider using below alternative method:
There is a hidden list "User Information List" that stores users (including groups) information. We can get group name through this list.

The endpoint is:
https://graph.microsoft.com/v1.0/sites/{siteid}/lists/User Information List/items?expand=fields
Reference doc:
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
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.
var data = await _client.Sites[site.Id].Lists["User Information List"].Items.Request().GetAsync();
Can you help me on C# side code to achive this right now i am using above code.
Hi @DnyaneshwarSurywanshi-0008,
Please have a look below code:
I have tested it on my tenant, it works well.

Thanks
Baker Kong
I am using Angular 8 for front end and getting below error :
System.NotSupportedException: The collection type 'Microsoft.Graph.IListItemVersionsCollectionPage' on 'Microsoft.Graph.ListItem.Versions is not supported .
Can you please help me on this?
As of now, it does not appear that you can get SharePoint Groups using Graph API. Post your comment in user invoice.
You can use Rest API to get all SharePoint Groups in the Site, below is the example:
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups
Thanks & Regards,
7 people are following this question.