Microsoft graph api 使用图形API获取SharePoint组(非广告组)

Microsoft graph api 使用图形API获取SharePoint组(非广告组),microsoft-graph-api,sharepoint-online,Microsoft Graph Api,Sharepoint Online,是否有使用Microsoft Graph检索SharePoint组的方法 我可以使用https://graph.microsoft.com/v1.0/groups但我要找的是SharePoint组 我可以使用https://graph.microsoft.com/beta/sites/{id}但我似乎无法在网站集中获取SharePoint组。仅在Microsoft图形中很难访问这一点。如果您有权访问SharePoint API,则可以从“用户信息列表”中获取GUID,而“用户信息列表”此时在Mi

是否有使用Microsoft Graph检索SharePoint组的方法

我可以使用
https://graph.microsoft.com/v1.0/groups
但我要找的是SharePoint组


我可以使用
https://graph.microsoft.com/beta/sites/{id}
但我似乎无法在网站集中获取SharePoint组。

仅在Microsoft图形中很难访问这一点。如果您有权访问SharePoint API,则可以从“用户信息列表”中获取GUID,而“用户信息列表”此时在Microsoft图形中似乎是隐藏的。该SharePoint API调用将是

获取HTTPhttps://sometenant.sharepoint.com/_api/web/lists?$select=标题,id&$filter=标题%20eq%20%27用户%20信息%20列表%27

一旦拥有该列表的GUID,就可以执行图形调用:

https://graph.microsoft.com/beta/sites/{site id}/lists/{SharePoint API中的列表id}/items


这将为您提供完整的成员列表,包括组。这仍然是一种攻击,因为您必须按contentType/name eq“SharePointGroup”过滤组,这在Graph Explorer中似乎有缺陷。此时,尝试以编程方式访问它将很困难

谢谢大家!!我会试试看。