pem.addUser

This method is supported by Operations starting from version 2.6.5

This method creates a Service User.

The method has the following input parameters:

Name

Type

Short Description

[subscription_id]

int

The ID of Subscription. Only subscriptions in local mode may be specified.

If specified, Service User will be created under the Account owning this subscription. Moreover, the Service User will be bound to this subscription.

Note: The parameter is optional since Operations 6.0.

[owner_account_id]

int

The ID of Account to which the created Service User will belong.

login

string

Service User's login.

password

string

Service User's password.

[check_password_quality]

boolean

Optional parameter. It defines whether to check the quality of password according to the password quality level defined in Operations.

[properties]

array of struct

Array of Service User's properties. Property is a pair of "name" and "value" parameters (see the Service User's Properties section).

If the display_name property is omitted, the login parameter's value is used as default value for the display_name property.

  • name

string

Property name.

  • value

string

Property value.

Note: Despite both subscription_id and owner_account_id parameters are optional, it is necessary to specify one of them. It is not allowed to specify both parameters simultaneously.

The method has the following output parameters:

Name

Type

Short Description

user_id

int

The ID of Service User created.

Note: This method can also be called under Reseller permissions.