ConnectedOrganization の作成

名前空間: microsoft.graph

新しい connectedOrganization オブジェクトを作成 します。

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) EntitlementManagement.ReadWrite.All
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション EntitlementManagement.ReadWrite.All

HTTP 要求

POST /identityGovernance/entitlementManagement/connectedOrganizations

要求ヘッダー

名前 説明
Authorization ベアラー {token}。必須。
Content-Type application/json. Required.

要求本文

要求本文で 、connectedOrganization オブジェクトの JSON 表記を指定します。

ConnectedOrganization を作成するときに、次の プロパティを指定できます

プロパティ 説明
displayName 文字列 接続されている組織名。
description String 接続されている組織の説明。
identitySources identitySource コレクション 1 つの要素を持つコレクション、この接続された組織の初期 ID ソース。
state connectedOrganizationState 接続されている組織の状態は、要求者スコープの種類を持つ割り当てポリシーが適用可能 AllConfiguredConnectedOrganizationSubjects かどうかを定義します。 可能な値は、configuredproposed です。

応答

成功した場合、このメソッドは応答コードと、応答本文で新しい 201 Created connectedOrganization オブジェクトを返します。

要求

POST https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/connectedOrganizations/
Content-Type: application/json

{
  "displayName":"Connected organization name",
  "description":"Connected organization description",
  "identitySources": [
    {
      "@odata.type": "#microsoft.graph.domainIdentitySource",
      "domainName": "example.com",
      "displayName": "example.com"
      }
  ],
  "state":"proposed"
}

応答

注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。

HTTP/1.1 201 Created
Content-type: application/json

{
  "id": "35ff48a8-e9d8-4405-8425-0b23694287a4",
  "displayName": "Connected organization name",
  "description": "Connected organization description",
  "createdDateTime": "2021-11-10T01:13:15.541617Z",
  "modifiedDateTime": "2021-11-10T01:13:15.541617Z",
  "state": "proposed",
  "identitySources": []
}