如何检索 SharePoint 组的 GUID
How to retrieve the GUID of SharePoint groups
我想在 MS Graph 中创建一个 API 来检索组:
https://graph.microsoft.com/v1.0/groups/{guid_id}/members
如何从当前网站检索 SharePoint 组的 GUID 并将其动态添加到查询中?
谢谢!
您可以使用
列出您组织中的所有组
https://graph.microsoft.com/v1.0/groups
这给你组对象。您将获得每个对象的 ID,它只是上述调用中的 GUID。
要列出所有组,有一个分页的概念,您将获得一个 nextLink,它可以为您提供下一组结果.看到这个 paging document.
您还可以获取您所属的群组
https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true
这也为您提供了组的 ID。
我想在 MS Graph 中创建一个 API 来检索组: https://graph.microsoft.com/v1.0/groups/{guid_id}/members
如何从当前网站检索 SharePoint 组的 GUID 并将其动态添加到查询中?
谢谢!
您可以使用
列出您组织中的所有组https://graph.microsoft.com/v1.0/groups
这给你组对象。您将获得每个对象的 ID,它只是上述调用中的 GUID。
要列出所有组,有一个分页的概念,您将获得一个 nextLink,它可以为您提供下一组结果.看到这个 paging document.
您还可以获取您所属的群组
https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group?$count=true
这也为您提供了组的 ID。