PATCH/Users/{userId}
Updates part of member information.
This API operation updates only the properties that can be set with the SCIM User API.
Those that cannot be set with the SCIM User API, such as team, job level, position, and visibility remain the same.
To update those properties, you need to use the Admin Console or the LINE WORKS APIs.
For more information about the SCIM PATCH coverage, see PATCH Operation .
Caution
- For the same member, the following API operations must be called in the order they are listed: Add a member, Update a member, Update part of a member, and Deactivate a member.
- Depending on the Manage Fields settings in the LINE WORKS Admin, whether each property is required or updatable may vary.
- This API operation works only when all the requests in the Operations list of the Request Body are valid.
- The requests in the Operations list of the Request Body are reflected in the order they are listed.
| Parameter | Type | Description |
|---|---|---|
| userId | integer | Member ID required |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required |
| Property | Type | Description |
|---|---|---|
| schemas | array (string) | Schema URL required |
| Operations | array (ScimPatchOperation) | List of requests to partially update required |
| Property | Type | Description |
|---|---|---|
| op | string | required Allowed values : add, replace, remove |
| path | string | Property path or filter to update |
| 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) | Schema URL required |
| id | string | Member ID readOnly : true |
| externalId | string | ID managed by the SCIM client maxLength : 100 |
| userName | string | Account. It is the same as the email address.
required maxLength : 90 |
| name | object (name) | required |
| displayName | string | Display name readOnly : true |
| nickName | string | Nickname
maxLength : 100 |
| preferredLanguage | string | Language code Allowed values : ko-KR, ja-JP, en-US, zh-CN, zh-TW |
| timezone | string | default : Time zone set for the domain |
| active | boolean | Indicates whether the member is active.
This field must be set to true when adding a member. default : true |
| emails | array (ScimUserEmail) | Email information |
| phoneNumbers | array (ScimUserPhoneNumber) | Phone number information |
| ims | array (ScimUserInstantMessage) | Messenger information |
| 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 | Last name
maxLength : 80 |
| givenName | stringnull | First name
maxLength : 80 |
| Property | Type | Description |
|---|---|---|
| type | string | Email type
required Allowed values : alias, other |
| primary | boolean | Indicates whether it is primary. default : false |
| value | string |
required |
| Property | Type | Description |
|---|---|---|
| type | string | Phone number type
required Allowed values : work, mobile |
| primary | boolean | Indicates whether it is primary. default : false |
| value | string | Phone number required maxLength : 100 pattern : ^(?=.*[0-9])[0-9+\-*#PTpt()\u3000]{0,100} |
| Property | Type | Description |
|---|---|---|
| type | string | Messenger type required Allowed values : work |
| primary | boolean | Indicates whether it is primary. default : false |
| value | string | Messenger ID required minLength : 1 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userExternalKey | stringnull | Member external key. Some special characters, %, , #, /, ? are not allowed. maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| resourceType | string | Resource type Allowed values : USER, GROUP |
| created | string | Creation date |
| lastModified | string | Last update date |
| location | string | Resource URI |
Bad Request
Not Found
Conflict