All Products
Search
Document Center

Identity as a Service:CreateUser

Last Updated:Oct 26, 2026

Creates an EIAM account in a specified organization.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/{instanceId}/{applicationId}/users HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

The instance ID.

idaas_ue2jvisn35ea5lmthk267xxxxx

applicationId

string

Yes

The application ID.

app_mkv7rgt4d7i4u7zqtzev2mxxxx

Request parameters

Parameter

Type

Required

Description

Example

Authorization

string

Yes

The authentication information. Format: Bearer ${access_token}. Example: Bearer ATxxxx.

Bearer AT8csE2seYxxxxxij

body

object

No

The request body.

app_xx001

username

string

Yes

The username. It can contain letters, digits, and the following special characters: underscore (_), period (.), at sign (@), and hyphen (-). The maximum length is 256 characters.

name001

displayName

string

No

The display name of the account. The maximum length is 128 characters.

display_name001

password

string

No

The account password. For password rules, refer to the password policy in the IDaaS console.

xxxxx

phoneRegion

string

No

The phone region code. For example, the region code for the Chinese mainland is 86, without 00 or +. This parameter is required if the phone number is specified.

86

phoneNumber

string

No

The phone number of the account. It must be 6 to 15 digits in length.

156xxxxxxx

phoneNumberVerified

boolean

No

Specifies whether the phone number is verified. This parameter is required if the phone number is specified. You can set this parameter to true if no special business requirements exist.

true

email

string

No

The email address. The email prefix can contain uppercase letters, lowercase letters, digits, periods (.), underscores (_), and hyphens (-). The maximum length is 128 characters.

example@example.com

emailVerified

boolean

No

Specifies whether the email address is verified. This parameter is required if the email address is specified. You can set this parameter to true if no special business requirements exist.

true

userExternalId

string

No

The external ID of the account, which is used to associate the account with an external system. The maximum length is 128 characters. If you do not specify this parameter, the account ID is used by default.

user_d6sbsuumeta4h66ec3il7yxxxx

primaryOrganizationalUnitId

string

Yes

The ID of the primary organizational unit.

ou_wovwffm62xifdziem7an7xxxxx

description

string

No

The description of the account. The maximum length is 256 characters.

Test account

passwordInitializationConfig

object

No

The password initialization configuration.

passwordInitializationPolicyPriority

string

No

The password initialization policy priority. This parameter does not take effect by default. Valid values:

  • global: Global priority. The instance-level password initialization policy is used. The password initialization Settings specified in this request do not take effect. Refer to the password initialization policy in the password-related policies.

  • custom: Custom priority. The password initialization Settings defined in this request are used, including whether to force a password change, the password initialization method, and the notification channel.

global

passwordForcedUpdateStatus

string

No

Specifies whether to force the user to change the password. This feature is disabled by default. Valid values:

  • enabled: Enabled.

  • disabled: Disabled.

enabled

userNotificationChannels

array

No

The notification channels for the password. Valid values:

  • email: Email.

  • sms: SMS.

sms

string

No

The notification channel for the password.

email

passwordInitializationType

string

No

The password initialization method. Valid values:

  • random: Random.

random

customFields

array<object>

No

The extended fields of the account.

object

No

The identifier and value of the extended field.

fieldName

string

No

The identifier of the extended field. You can view the detailed information about the type and value range of the extended field in the console.

age

fieldValue

string

No

The value of the extended field.

fieldValue_001

Response elements

Element

Type

Description

Example

object

The response result.

userId

string

The account ID.

user_d6sbsuumeta4h66ec3il7yxxxx

Examples

Success response

JSON format

{
  "userId": "user_d6sbsuumeta4h66ec3il7yxxxx"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.