groupLifecyclePolicy: removeGroupgroupLifecyclePolicy: removeGroup


Microsoft Graph 中/beta的版本下的 api 可能会发生更改。APIs under the /beta version in Microsoft Graph are subject to change. 不支持在生产应用程序中使用这些 API。Use of these APIs in production applications is not supported.

从生命周期策略中删除组。Removes a group from a lifecycle policy.


要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) Directory.ReadWrite.AllDirectory.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 不支持Not supported
应用程序Application Directory.ReadWrite.AllDirectory.ReadWrite.All

HTTP 请求HTTP request

POST /groupLifecyclePolicies/{id}/removeGroup

请求标头Request headers

名称Name 说明Description
AuthorizationAuthorization Bearer {token}。必需。Bearer {token}. Required.
Content-TypeContent-Type application/jsonapplication/json

请求正文Request body

在请求正文中,提供具有以下参数的 JSON 对象。In the request body, provide a JSON object with the following parameters.

参数Parameter 类型Type 说明Description
groupIdgroupId GuidGuid 要从策略中删除的组的 ID。The id of the group to remove from the policy.


如果成功,此方法返回 200 OK 响应代码。If successful, this method returns 200 OK response code. 如果已从策略中删除组,响应正文中返回 true 值。If the group is removed from the policy, a true value is returned in the response body. 否则,响应正文中返回 false 值。Otherwise, a false value is returned in the reponse body.


Content-type: application/json
Content-length: 57

  "groupId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
HTTP/1.1 200 OK
Content-type: application/json
Content-length: 21

  "value": true