Create a user
/system/v2/accounts/users
Platform support: MT and CC
Token Cost: 2 tokens (low)
Creates a new site user. The body has four sections: general (name, e-mail,
group and account state), contact (company, postal address and phone numbers),
password (the password and its policy settings) and the optional
statistics_permissions. The first three are required.
password.password is required, must be at least 6 characters long and must meet
the site manager password policy. Unless password checks are disabled in the site
settings:
- it must not begin or end with whitespace
- it may only use
a-z,A-Z,0-9and! % * _ -and must reach a strength score of 75 (seepassword.password)
With checks disabled any characters are allowed, and surrounding whitespace is trimmed off before the password is stored.
password.confirm_password must repeat password.password.
general.email must not already be used by another site user. general.group and
contact.country select records by id ({"id": 2}): the group id must be 1
(Site Admin) or the id of an existing group (see GET /system/v2/accounts/groups), and the
country id one from GET /system/v2/countries. Responses return both as
{"id": ..., "name": ...}.
The user always gets the app privileges of its group; privileges set for the user alone are dropped on every save.
statistics_permissions are only allowed on Contact Center systems, and their
campaigns only when the dialer is enabled; otherwise sending them is forbidden.
With send_email=1 the user is e-mailed its account details, including the
password, after it is created. The e-mail is sent in the background; a failure to
send it does not fail the request.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 500
User created successfully
Invalid request
Unauthorized
Forbidden
Conflict - resource already exists or is in use
Internal server error