POST/orgunits/{orgUnitId}/orgunit-access-restrict
조직의 조직 조회 제한을 설정한다.
구성원의 대표 조직에 조회 제한이 설정돼 있으면 구성원에게 조회 제한이 적용된다.
구성원의 조회 제한이 구성원과 고용 형태, 조직에 중복으로 설정돼 있으면 구성원 > 고용 형태 > 조직의 순서로 우선 적용된다.
예를 들어, 특정 구성원의 조회 제한이 구성원과 조직에 설정돼 있으면 우선순위에 따라 구성원에 설정된 조회 제한이 적용된다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.
directory
orgunit
| Parameter | Type | Description |
|---|---|---|
| orgUnitId | string | 조직 ID required example : orgunitf-f27f-4af8-27e1-03817a911417 |
| 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 수정할 때 고객사에서 관리하는 externalKey를 사용하려면 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 수정할 때 고객사에서 관리하는 externalKey를 사용하려면 required |
| includeSubOrgUnits | boolean | 특정 조직의 하위 조직까지 조회할 수 있게 할지 여부 default : false |
| orgUnitExternalKey | string | 고객사에서 관리하는 외부 키 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