PATCH/Users/{userId}
구성원 정보를 부분 수정한다.
SCIM User API로 설정할 수 있는 속성만 변경된다.
SCIM User API로 설정할 수 없는 속성(소속 조직, 직급, 직책, 공개여부 등)은 기존값을 유지한다.
SCIM User API로 설정할 수 없는 속성(소속 조직, 직급, 직책, 공개여부 등)은 Admin Console 또는 NAVER WORKS API를 사용하여 변경할 수 있다.
자세한 SCIM PATCH 제공 범위는 PATCH Operation을 참고한다.
주의
- 구성원 추가/수정/부분 수정/비활성화 API는 동일 구성원에 대하여 동시에 호출해서는 안 되며, 순서 대로 호출해야 한다.
- <항목관리> 설정에 따라 각 속성의 필수 여부, 수정 가능 여부가 달라질 수 있다.
- Request Body의 Operations 목록 내 모든 요청이 유효한 경우에만 수정된다.
- Request Body의 Operations 목록 순서 대로 반영된다.
| Parameter | Type | Description |
|---|---|---|
| userId | integer | 구성원 ID required |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} SCIM 전용 Long-Lived Token 발급 문서를 참고한다. required |
| Content-Type | string | application/json required |
| Property | Type | Description |
|---|---|---|
| schemas | array (string) | 스키마 URL required |
| Operations | array (ScimPatchOperation) | 부분 수정 요청 목록 required |
| Property | Type | Description |
|---|---|---|
| op | string | required Allowed values : add, replace, remove |
| path | string | 수정할 속성 경로 또는 필터 |
| value | object | |
| array (undefined) | ||
| string | ||
| boolean | ||
| null |
Example 1
1{2 "schemas": [3 "urn:ietf:params:scim:api:messages:2.0:PatchOp"4 ],5 "Operations": [6 {7 "op": "add",8 "path": "nickName",9 "value": "nickName"10 },11 {12 "op": "replace",13 "path": "name.givenName",14 "value": "john"15 },16 {17 "op": "remove",18 "path": "phoneNumbers[type eq \"mobile\"]"19 },20 {21 "op": "replace",22 "path": "active",23 "value": false24 },25 {26 "op": "add",27 "path": "phoneNumbers[type eq \"mobile\"].value",28 "value": "010-1234-5678"29 },30 {31 "op": "replace",32 "path": "emails[type eq \"alias\" and value eq \"alias_email_1@example.com\"]",33 "value": {34 "type": "alias",35 "primary": false,36 "value": "alias_email_2@example.com"37 }38 }39 ]40}| Property | Type | Description |
|---|---|---|
| schemas | array (string) | 스키마 URL required |
| id | string | 구성원 ID readOnly : true |
| externalId | string | SCIM 클라이언트 측에서 관리하는 ID maxLength : 100 |
| userName | string | 계정. 메일 주소와 동일하다.
required maxLength : 90 |
| name | object (name) | required |
| displayName | string | 표시 이름 readOnly : true |
| nickName | string | 닉네임
maxLength : 100 |
| preferredLanguage | string | 언어 코드 Allowed values : ko-KR, ja-JP, en-US, zh-CN, zh-TW |
| timezone | string | default : 도메인에 설정된 타임존 |
| active | boolean | 활성화 여부
구성원 추가 시 반드시 true로 전달해야 한다. default : true |
| emails | array (ScimUserEmail) | 이메일 정보 |
| phoneNumbers | array (ScimUserPhoneNumber) | 전화번호 정보 |
| ims | array (ScimUserInstantMessage) | 메신저 정보 |
| urn:ietf:params:scim:schemas:extension:works:2.0:User | object (urn:ietf:params:scim:schemas:extension:works:2.0:User) | |
| meta | object (meta) |
| Property | Type | Description |
|---|---|---|
| familyName | stringnull | 성
maxLength : 80 |
| givenName | stringnull | 이름
maxLength : 80 |
| Property | Type | Description |
|---|---|---|
| type | string | 이메일 유형
required Allowed values : alias, other |
| primary | boolean | 대표 여부 default : false |
| value | string | 이메일
required |
| Property | Type | Description |
|---|---|---|
| type | string | 전화번호 유형
required Allowed values : work, mobile |
| primary | boolean | 대표 여부 default : false |
| value | string | 전화번호 required maxLength : 100 pattern : ^(?=.*[0-9])[0-9+\-*#PTpt()\u3000]{0,100} |
| Property | Type | Description |
|---|---|---|
| type | string | 메신저 유형 required Allowed values : work |
| primary | boolean | 대표 여부 default : false |
| value | string | 메신저 ID required minLength : 1 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userExternalKey | stringnull | 구성원 외부 키. %, , #, /, ? 포함 불가 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| resourceType | string | 리소스 유형 Allowed values : USER, GROUP |
| created | string | 생성일 |
| lastModified | string | 최근 수정일 |
| location | string | 리소스 URI |
Bad Request
Not Found
Conflict