【发布时间】:2020-11-03 09:46:13
【问题描述】:
在官方文档中,有一个示例可以发出 DELETE 请求以从组中删除成员。这是文档 - remove member
DELETE https://graph.microsoft.com/v1.0/groups/{group-id}/members/{directory-object-id}/$ref
到目前为止,从我发现和测试的结果来看,将用户添加到组时,每个请求最多可以将 20 个用户添加到组中。 add member
PATCH https://graph.microsoft.com/v1.0/groups/{group-id}
Content-type: application/json
Content-length: 30
{
"members@odata.bind": [
"https://graph.microsoft.com/v1.0/directoryObjects/{id}",
"https://graph.microsoft.com/v1.0/directoryObjects/{id}",
"https://graph.microsoft.com/v1.0/directoryObjects/{id}"
]
}
我想知道是否有可能根据请求从组中删除多个用户,或者您是否可以根据请求一次从组中删除 20 个用户,就像您将他们添加到组。
【问题讨论】:
标签: c# azure-active-directory microsoft-graph-api httprequest azure-ad-b2c