Easily create accounts for your end users.
Operation description
A convenience account is a dedicated account system in Wuying Workspace for simple use cases that do not require enterprise AD integration. Accounts require a username, and either an email or a phone number.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateUsers |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Users |
array<object> |
Yes |
Details about the convenience users. |
CreateUsers |
|
object |
No |
Details about the convenience user. |
||
| EndUserId |
string |
Yes |
The user name. The user name must be 3 to 24 characters long and can contain lowercase letters, digits, and underscores (_). |
alice |
|
string |
No |
The email address of the convenience user. This email address is used for notifications, such as an alert when a cloud computer is assigned. You must specify either this parameter or the |
username@example.com |
|
| Phone |
string |
No |
The phone number of the convenience user. This phone number is used for notifications, such as a text message when a cloud computer is assigned. You must specify either this parameter or the |
1381111**** |
| Password |
string |
No |
The password for the convenience user. Note
The password must be at least 10 characters long and contain characters from at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters (excluding spaces). |
Wuying1234 |
| OwnerType |
string |
No |
The account activation type. Valid values:
|
Normal |
| OrgId |
string |
No |
The ID of the organization to which the convenience user belongs. |
design |
| Remark |
string |
No |
A remark for the convenience user. |
remark1 |
| RealNickName |
string |
No |
The display name of the convenience user. |
Bean |
| GroupIdList |
array |
No |
||
|
string |
No |
|||
| Password |
string |
No |
The initial password. If you do not specify this parameter, the system sends a password reset email to the convenience user's email address. |
Test123**** |
| AutoLockTime |
string |
No |
The date and time when the system automatically locks the convenience user's account. The value must be in the |
2025-11-28 00:00:00 |
| IsLocalAdmin |
boolean |
No |
Specifies whether to set the convenience user as a local administrator. |
true |
| PasswordExpireDays |
string |
No |
By default, a convenience user's password does not expire. You can use this parameter to specify a password validity period of 30 to 365 days. After the password expires, the user must reset it to log in again. Note
This feature is in invited preview. To use this feature, submit a ticket. |
30 |
| BusinessChannel |
string |
No |
The business channel. |
ENTERPRISE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| CreateResult |
object |
The result of creating convenience accounts. |
|
| CreatedUsers |
array<object> |
The convenience accounts that were successfully created. |
|
|
object |
A convenience account that was successfully created. |
||
| EndUserId |
string |
The user name. |
test1 |
|
string |
The email address. |
username@example.com |
|
| Phone |
string |
The phone number. |
1381111**** |
| Remark |
string |
The user's remark. |
remark1 |
| RealNickName |
string |
The display name. |
Bean |
| FailedUsers |
array<object> |
The convenience accounts that failed to be created. |
|
|
object |
A convenience account that failed to be created. |
||
| EndUserId |
string |
The user name. |
test2 |
|
string |
The email address. |
username2@example.com |
|
| Phone |
string |
The phone number. |
1390000**** |
| ErrorCode |
string |
The error code. |
ExistedEndUserId |
| ErrorMessage |
string |
The error message. |
The username test is used by another user. |
| AllSucceed |
boolean |
Examples
Success response
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."
}
]
},
"AllSucceed": false
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | INTERNAL_ERROR | Internal error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.