AdminUsers
Methods
AddAdminUser
Adds a new admin user into the specified parent or child account.
Parameters
new_admin_user_name:
string
The admin user name. The length must be less than 50.
admin_user_display_name:
string
The admin user display name. The length must be less than 256.
new_admin_user_password:
string
The admin user password. The length must be at least 6 symbols.
admin_user_active:
boolean
OptionalDefaults on: trueThe admin user enable flag.
admin_role_id:
string
OptionalThe role(s) ID created via Managing Admin Roles methods. The attaching admin role ID list separated by the ';' symbol or the 'all' value.
admin_role_name:
stringlist
OptionalThe role(s) name(s) created via Managing Admin Roles methods. The attaching admin role name that can be used instead of admin_role_id.
Returns
result:
number
1
admin_user_id:
number
The new admin user ID.
admin_user_api_key:
string
The admin user API key.
DelAdminUser
Deletes the specified admin user.
Parameters
required_admin_user_id:
intlist
The admin user ID list separated by the ';' symbol or the 'all' value.
required_admin_user_name:
stringlist
The admin user name to delete, can be used instead of required_admin_user_id.
Returns
result:
number
1
SetAdminUserInfo
Edits the specified admin user.
Parameters
required_admin_user_id:
number
The admin user to edit.
required_admin_user_name:
string
The admin user to edit, can be used instead of required_admin_user_id.
new_admin_user_name:
string
OptionalThe new admin user name. The length must be less than 50.
admin_user_display_name:
string
OptionalThe new admin user display name. The length must be less than 256.
new_admin_user_password:
string
OptionalThe new admin user password. The length must be at least 6 symbols.
admin_user_active:
boolean
OptionalThe admin user enable flag.
Returns
result:
number
1
GetAdminUsers
Gets the admin users of the specified account. Note that both account types - parent and child - can have its own admins.
Parameters
required_admin_user_id:
number
OptionalThe admin user ID to filter.
required_admin_user_name:
string
OptionalThe admin user name part to filter.
admin_user_display_name:
string
OptionalThe admin user display name part to filter.
admin_user_active:
boolean
OptionalThe admin user active flag to filter.
with_roles:
boolean
OptionalDefaults on: falseSet true to get the attached admin roles.
with_access_entries:
boolean
OptionalDefaults on: falseSet true to get the admin user permissions.
count:
number
OptionalDefaults on: 20The max returning record count.
offset:
number
OptionalDefaults on: 0The first N records will be skipped in the output.
Returns
result:
total_count:
number
The total found admin user count.
count:
number
The returned admin user count.
AttachAdminRole
Attaches the admin role(s) to the already existing admin(s).
Parameters
required_admin_user_id:
intlist
The admin user ID list separated by the ';' symbol or the 'all' value.
required_admin_user_name:
stringlist
The admin user name to bind, can be used instead of required_admin_user_id.
admin_role_id:
intlist
The role(s) ID created via Managing Admin Roles methods. The attached admin role ID list separated by the ';' symbol or the 'all' value.
admin_role_name:
stringlist
The role(s) name(s) created via Managing Admin Roles methods. The admin role name to attach, can be used instead of admin_role_id.
mode:
string
OptionalDefaults on: setThe merge mode. The following values are possible: add, del, set.
Returns
result:
number
1