Skip to main content
Skip table of contents

user/{GUID}

Details for a single user. To get the GUIDs for all users in the system, use GET user/list.


GET

Parameters

ParameterDescription
{GUID}Required. The GUID for the user you want to look up.

Example request

Request

CODE
curl -b c.txt -c c.txt -X GET \
https://bc.qwe.com/mocana-app-control/rest/user/15d6948c-ac80-4328-8760-6f7fce1595f7

Response

CODE
{
  "message": "", 
  "status": "OK", 
  "user": [{
    "email": "email05@qwe.com",
    "first_name": "Stuart",
    "id": "15d6948c-ac80-4328-8760-6f7fce1595f7", 
    "last_name": "Sutcliffe",
    "ua_admin": "1",
    "ua_creation_date": "2016-11-22 15:39:26.0", 
    "ua_modification_date": "2016-11-22 15:39:26.0",
    "ua_status": "1",
    "userUrl": "https://bc.qwe.com/mocana-app-control/rest/user/15d6948c-ac80-4328-8760-6f7fce1595f7"
  }] 
} 

DELETE

Removes the user account from the policy console.

You cannot undo a delete. After an account has been deleted, the only way to reinstate it is to create it again with POST user/create.

Parameters

ParameterDescription
{GUID}Required. The GUID for the user you want to remove.

Example request

Request

CODE
curl -b c.txt -c c.txt -X DELETE \
https://bc.qwe.com/mocana-app-control/rest/user/1c4694cf-2c0d-4239-bfa3-1e873d3855e2

Response

CODE
{
  "application": {},
  "message": "",
  "status": "OK" 
}
JavaScript errors detected

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

If this problem persists, please contact our support.