POST/Users
Adds a member.
For properties you can specify when adding a member, see Property mapping.
To specify properties that cannot be set with the SCIM User API, you need to use the Admin Console or the LINE WORKS APIs.
If SSO is enabled, a new member is added as active and can use the service immediately.
If SSO is not enabled, a new member is added as inactive.
For domains where SSO is not enabled, you must include a personal email address (type: other) for password registration.
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.
- The “active” property must be set to true.
- Depending on the Manage Fields settings in the LINE WORKS Admin, whether each property is required or updatable may vary.
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required |
| Property | Type | Description |
|---|---|---|
| schemas | array (string) | Schema URL |
| externalId | stringnull | ID managed by the SCIM client maxLength : 100 |
| userName | string | Account. It is the same as the email address.
maxLength : 90 |
| name | object (name) | |
| nickName | stringnull | Nickname
maxLength : 100 |
| preferredLanguage | string | Language code If this field is not specified adding a member, the language set in the domain is used. Allowed values : ko-KR, ja-JP, en-US, zh-CN, zh-TW |
| timezone | string | If this field is not specified when adding a member, the time zone set in the domain is used. 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) |
| 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 |
|---|---|---|
| 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
Conflict