Create an EIAM account in a specific EIAM instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateUser |
create |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| Username |
string |
Yes |
The username. It can contain letters, digits, and the following special characters: underscores (_), periods (.), at signs (@), and hyphens (-). The maximum length is 256 characters. |
user_001 |
| DisplayName |
string |
No |
The display name. The maximum length is 128 characters. |
name_001 |
| Password |
string |
No |
The password. The format must comply with the password policy. |
123456 |
| PhoneRegion |
string |
No |
The country code. It must contain 1 to 6 digits and must not include the plus sign (+). |
86 |
| PhoneNumber |
string |
No |
The phone number. It must be 6 to 15 digits long. |
12345678901 |
| PhoneNumberVerified |
boolean |
No |
Indicates whether the phone number is verified. A verified number is considered trusted. This parameter is required if you specify the |
true |
|
string |
No |
The email address. The local part of the address can contain uppercase letters, lowercase letters, digits, periods (.), underscores (_), or hyphens (-). The maximum length is 128 characters. |
example@example.com |
|
| EmailVerified |
boolean |
No |
Indicates whether the email address is verified. A verified address is considered trusted. This parameter is required if you specify the |
true |
| UserExternalId |
string |
No |
The external ID for associating the user with an external system. The maximum length is 128 characters. If this parameter is not specified, its value defaults to the system-generated user ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| PrimaryOrganizationalUnitId |
string |
Yes |
The ID of the primary organizational unit. |
ou_wovwffm62xifdziem7an7xxxxx |
| OrganizationalUnitIds |
array |
No |
A list of subordinate organizational unit IDs. A user can belong to multiple organizational units. |
|
|
string |
No |
The ID of the organizational unit. |
ou_adz2vmgiwpo4tu6jtss3mynjji |
|
| Description |
string |
No |
The description. The maximum length is 256 characters. |
description text |
| CustomFields |
array<object> |
No |
The list of custom fields. |
description |
|
object |
No |
The custom field object. |
||
| FieldName |
string |
No |
The identifier of the custom field. You must create this field in the console before you can use it in a request. For more information, see the Custom Fields module in the console. |
age |
| FieldValue |
string |
No |
The value of the custom field. This value must comply with the constraints defined for the corresponding custom field. |
10 |
| PasswordInitializationConfig |
object |
No |
The settings for the password initialization policy. |
|
| PasswordInitializationPolicyPriority |
string |
No |
The priority of the password initialization policy. This setting is disabled by default. Valid values:
|
global |
| PasswordForcedUpdateStatus |
string |
No |
The status of forced password update. This setting is disabled by default. Valid values:
|
enabled |
| UserNotificationChannels |
array |
No |
The list of password notification channels. |
sms |
|
string |
No |
The password notification channel. Valid values:
|
sms |
|
| PasswordInitializationType |
string |
No |
The password initialization type. Valid values:
|
random |
| ClientToken |
string |
No |
A client-provided token to ensure the idempotence of the request. This value must be unique for each request. The token can contain only ASCII characters and must be no more than 64 characters long. For more information, see How to ensure idempotence. |
client-token-example |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| UserId |
string |
The user ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"UserId": "user_d6sbsuumeta4h66ec3il7yxxxx"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ResourceDuplicated.Username | The specified resource: Username already exist. | Duplicate user name |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.