Skip to main content
Skip table of contents

user/update

Update a user account.

PUT

Updates details in a user account.

Any fields that you don't explicitly set with this resource retain their previous value.

Parameters

Parameter
Description
idRequired. The GUID for the user account you want to change. To get the GUIDs for all users in the system, use GET user/list.
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.

Example request

Request

CODE
curl -b c.txt -c c.txt -X PUT https://bc.qwe.com/mocana-app-control/rest/user/update \
-d id="9b55d45c-8bd3-43ac-a02b-bd4406c7220c" \
-d email="email01@qwe.com" \
-d last_name="Zulu"

Response

CODE
{
  "message": "", 
  "settings": [{
  "user": [{
    "email": "email01@qwe.com",
    "first_name": "",
    "id": "9b55d45c-8bd3-43ac-a02b-bd4406c7220c",
    "last_name": "Zulu",
    "ua_admin": "0",
    "ua_creation_date": "2015-11-22 15:39:26.0",
    "ua_modification_date": "2015-11-30 12:04:37.0",
    "ua_status": "0",
    "userUrl": "https://bc.qwe.com/mocana-app-control/rest/user/9b55d45c-8bd3-43ac-a02b-bd4406c7220c"
  }]
}
JavaScript errors detected

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

If this problem persists, please contact our support.