Skip to main content
Skip table of contents

user/create

A new user account.

POST

Creates the user account in the policy console.

Parameters

ParameterDescription
emailRequired. The email address used as the user's login name.
passwordRequired. The user's password.
first_nameOptional. The user's first name.
last_nameOptional. The user's last name.
ua_admin

Optional. Whether the user can log into the policy console and access API resources with administrator privileges.

  • 1: User has administrator privileges.
  • 0 (default): User does not have administrator privileges.
ua_status

Optional. Whether the user can log into the policy console.

  • 1: User is active and can log into the policy console.
  • 0 (default): User cannot log into the policy console.

Note: Consider setting new users to active when creating the account, otherwise they cannot log in until you update.

Example request

Request

CODE
curl -b c.txt -c c.txt -X POST https://bc.qwe.com/mocana-app-control/rest/user/create \
-d email="email22@qwe.com" \
-d password="Qwerty1@" \
-d first_name="Renee" \
-d last_name="Descartes" \
-d ua_status="1"

Response

CODE
{
  "message": "", 
  "settings": [{
  "user": [{
    "email": "email22@qwe.com",
    "first_name": "Renee",
    "id": "e0805552-b06d-464f-923c-68dd4c6df9d7",
    "last_name": "Descartes",
    "ua_admin": "0",
    "ua_creation_date": "2012-04-27 16:43:46.0",
    "ua_modification_date": "2012-04-27 16:43:46.0",
    "ua_status": "1",
    "userUrl": "https://bc.qwe.com:443/mocana-app-control/rest/user/e0805552-b06d-464f-923c-68dd4c6df9d7"
  }],
  "status": "OK"
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.