Creates a convenience user.
Operation description
Convenience users are dedicated Elastic Desktop Service (EDS) user accounts and are suitable for scenarios in which you do not need to connect to enterprise Active Directory (AD) systems. The information about a convenience user includes the username, email address, and mobile number. You must specify the username or email address.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Users | object [] | Yes | The information about the convenience user. | CreateUsers |
EndUserId | string | Yes | The username of the convenience user. The name can contain lowercase letters, digits, and underscores (_), and must be 3 to 24 characters in length. | test1 |
string | No | The email address of the convenience user. The email address is used to receive notifications about events such as desktop assignment. You must specify an email address or a mobile number to receive notifications. | username@example.com | |
Phone | string | No | Mobile numbers are not supported on the international site (alibabacloud.com). | 1381111**** |
Password | string | No | The user password. Note
The password must be at least 10 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters (excluding spaces).
| password1 |
OwnerType | string | No | The type of the account ownership. Valid values:
| Normal |
OrgId | string | No | The organization to which the convenience user belongs. | 1111**** |
Remark | string | No | The remarks on the convenience user. | remark1 |
RealNickName | string | No | The display name of the end user. | Bean |
Password | string | No | The initial password. If this parameter is left empty, an email for password reset is sent to the specified email address. | Test123**** |
AutoLockTime | string | No | The date on which the convenience users are automatically locked. | 2023-03-03 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"CreateResult": {
"CreatedUsers": [
{
"EndUserId": "test1",
"Email": "username@example.com",
"Phone": "1381111****",
"Remark": "remark1",
"RealNickName": "Bean"
}
],
"FailedUsers": [
{
"EndUserId": "test2",
"Email": "username2@example.com",
"Phone": "1390000****",
"ErrorCode": "ExistedEndUserId",
"ErrorMessage": "The username test is used by another user."
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | INTERNAL_ERROR | Internal error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-04-09 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||
| ||||||||||||
2024-01-16 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||||
| ||||||||||||
2023-08-31 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||
| ||||||||||||
2021-04-02 | Add Operation | see changesets |