PUT/Users/{userId}
ユーザー情報を更新する。
注意
- ユーザーの登録/更新/部分更新/無効化 API は、同じユーザーに対しては同時に呼び出してはならず、シングルスレッドで順番に呼び出すことを推奨します。
- 更新・取得できる属性・プロパティは、管理項目 設定などのサービスによる制約に従います。
- SCIM User API で設定できる属性・プロパティのみが更新されます。SCIM User API で設定できないプロパティ (所属組織、役職、職級、公開設定など) は、設定値を維持します。
- SCIM User API で設定できないプロパティ (所属組織、役職、職級、公開設定など) は、管理者画面、または LINE WORKS API を使用して変更できます。
| Parameter | Type | Description |
|---|---|---|
| userId | integer | ユーザー ID required |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required |
| Property | Type | Description |
|---|---|---|
| schemas | array (string) | Schema URL |
| externalId | stringnull | SCIM クライアントで管理する ID maxLength : 100 |
| userName | string | アカウント。メールアドレスと同じ。
maxLength : 90 |
| name | object (name) | |
| nickName | stringnull | ニックネーム
maxLength : 100 |
| preferredLanguage | string | 言語コード Allowed values : ja-JP, ko-KR, en-US, zh-CN, zh-TW |
| timezone | string | タイムゾーン default : ドメインで設定されているタイムゾーン |
| active | boolean | 有効化状態
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) |
| 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 | SNS ID required minLength : 1 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userExternalKey | stringnull | ユーザー Externalkey maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| schemas | array (string) | Schema 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 : ja-JP, ko-KR, en-US, zh-CN, zh-TW |
| timezone | string | default : ドメインで指定されたタイムゾーン |
| active | boolean | 有効化状態
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 | SNS ID required minLength : 1 maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userExternalKey | stringnull | ユーザー Externalkey maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| resourceType | string | リソースタイプ Allowed values : USER, GROUP |
| created | string | 作成日時 |
| lastModified | string | 最終更新日時 |
| location | string | リソース URI |
Bad Request
Not Found
Conflict