PUT/directory/user-types/{userTypeId}/orgunit-access-restrict
Updates team information access restrictions for a user type.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
directory
| Parameter | Type | Description |
|---|---|---|
| userTypeId | string | User type ID 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 | Restriction type
required Allowed values : ONLY_ME, ONLY_MY_ORGUNIT, ONLY_MY_AND_SPECIFIED_ORGUNIT |
| specifiedOrgUnits | array (orgUnit) | List of specified teams that can be viewed if accessRestrictType is ONLY_MY_AND_SPECIFIED_ORGUNIT. minItems : 0 maxItems : 200 |
| Property | Type | Description |
|---|---|---|
| orgUnitId | string | Team ID You need to use the customer's external key in required |
| includeSubOrgUnits | boolean | Indicates whether to view child teams of a specified team. 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 | Restriction type
required Allowed values : ONLY_ME, ONLY_MY_ORGUNIT, ONLY_MY_AND_SPECIFIED_ORGUNIT |
| specifiedOrgUnits | array (orgUnit) | List of specified teams that can be viewed if accessRestrictType is ONLY_MY_AND_SPECIFIED_ORGUNIT. minItems : 0 maxItems : 200 |
| Property | Type | Description |
|---|---|---|
| orgUnitId | string | Team ID You need to use the customer's external key in required |
| includeSubOrgUnits | boolean | Indicates whether to view child teams of a specified team. default : false |
| orgUnitExternalKey | string | Customer's external key 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