【问题标题】:Is there any posibility to delete multiple members of a group with microsoft graph?是否可以使用 microsoft graph 删除组的多个成员?
【发布时间】: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


    【解决方案1】:

    很遗憾,经过我的测试,不能通过Microsoft Graph删除组内的多个成员,只能删除单个成员。您可以提出您的建议here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-10
      • 1970-01-01
      • 1970-01-01
      • 2020-12-09
      相关资源
      最近更新 更多