CreateUser - Create user
Creates a user.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization
|
Product |
Resource |
Permission |
|
organization settings |
user |
read and write |
Request syntax
POST https://{domain}/oapi/v1/platform/users
Request |
Create user
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Parameters |
|
|
name The display name. |
|
|
username The login name. |
|
|
password The password. |
|
|
email The email address. |
|
|
nickName The nickname. |
|
|
staffId The employee ID. |
|
|
sysDeptIds The IDs of the user's departments. If this parameter is left empty, the user is added to the root department. |
Response |
Sample response
|
|
id The user ID. |
|
|
username The login name. |
|
|
name The display name. |
|
|
nickName The nickname. |
|
|
email The email address. |
|
|
staffId The employee ID. |
|
|
createdAt The creation time. |
Error codes
For more information, see Error code center.