更新 connectedOrganization

命名空间:microsoft.graph

更新 connectedOrganization 对象以更改其一个或多个属性。

权限

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限

权限类型 权限(从最低特权到最高特权)
委派(工作或学校帐户) EntitlementManagement.ReadWrite.All
委派(个人 Microsoft 帐户) 不支持。
应用程序 EntitlementManagement.ReadWrite.All

HTTP 请求

PATCH /identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganizationId}

请求标头

名称 说明
Authorization Bearer {token}。必需。
Content-Type application/json. Required.

请求正文

在请求正文中, 提供应更新的属性的值。未包含在请求正文中的现有属性将保留其以前的值或根据对其他属性值的更改重新计算。

下表指定可以更新的属性。

属性 类型 说明
displayName String 连接的组织名称。
说明 String 已连接的组织说明。
identitySources identitySource 集合 此已连接组织中的身份源,azureActiveDirectoryTenant、domainIdentitySourceexternalDomainFederation 之一 可为 NULL。
state connectedOrganizationState 已连接组织的状态定义具有请求者作用域类型的分配策略 AllConfiguredConnectedOrganizationSubjects 是否适用。 可取值为:configuredproposed

响应

如果成功,此方法在响应 202 Accepted 正文中返回 响应代码和 connectedOrganization 对象。

示例

请求

PATCH https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/connectedOrganizations/{id}
Content-Type: application/json

{
  "displayName":"Connected organization new name",
  "description":"Connected organization new description",
  "state":"configured"
}

响应

注意: 为了提高可读性,可能缩短了此处显示的响应对象。

HTTP/1.1 202 Accepted
Content-type: application/json

{
  "id": "006111db-0810-4494-a6df-904d368bd81b",
  "displayName":"Connected organization new name",
  "description":"Connected organization new description",
  "state":"configured"
}