user/create
A new user account.
POST
Creates the user account in the policy console.
Parameters
Parameter | Description |
---|---|
Required. The email address used as the user's login name. | |
password | Required. The user's password. |
first_name | Optional. The user's first name. |
last_name | Optional. The user's last name. |
ua_admin | Optional. Whether the user can log into the policy console and access API resources with administrator privileges.
|
ua_status | Optional. Whether the user can 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"
}