PUT/directory/user-types/{userTypeId}/orgunit-access-restrict
利用権限タイプの組織図閲覧の制限を更新する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
directory
| Parameter | Type | Description |
|---|---|---|
| userTypeId | string | 利用権限タイプを特定する ID (URL エンコードする)
required example : employ2c-f321-47a6-ac11-e81fcc23a8c3 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| accessRestrictType | string | 閲覧制限タイプ
required Allowed values : ONLY_ME, ONLY_MY_ORGUNIT, ONLY_MY_AND_SPECIFIED_ORGUNIT |
| specifiedOrgUnits | array (orgUnit) | 閲覧制限タイプが "ONLY_MY_AND_SPECIFIED_ORGUNIT" の場合に指定する組織リスト minItems : 0 maxItems : 200 |
| Property | Type | Description |
|---|---|---|
| orgUnitId | string | 組織を特定する ID
required |
| includeSubOrgUnits | boolean | 指定した組織の下位組織を含む default : false |
example
1{2 "accessRestrictType": "ONLY_MY_AND_SPECIFIED_ORGUNIT",3 "specifiedOrgUnits": [4 {5 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",6 "includeSubOrgUnits": true7 }8 ]9}OK
| Property | Type | Description |
|---|---|---|
| accessRestrictType | string | 閲覧制限タイプ
required Allowed values : ONLY_ME, ONLY_MY_ORGUNIT, ONLY_MY_AND_SPECIFIED_ORGUNIT |
| specifiedOrgUnits | array (orgUnit) | 閲覧制限タイプが "ONLY_MY_AND_SPECIFIED_ORGUNIT" の場合に指定する組織リスト minItems : 0 maxItems : 200 |
| Property | Type | Description |
|---|---|---|
| orgUnitId | string | 組織を特定する ID
required |
| includeSubOrgUnits | boolean | 指定した組織の下位組織を含む default : false |
| orgUnitExternalKey | string | 組織の ExternalKey readOnly : true |
example
1{2 "accessRestrictType": "ONLY_MY_AND_SPECIFIED_ORGUNIT",3 "specifiedOrgUnits": [4 {5 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",6 "includeSubOrgUnits": false,7 "orgUnitExternalKey": "ORGUNIT_EXT_01"8 }9 ]10}Bad Request
Not Found