iotoms Docs

Get a user

GET
/api/v1/management/users/{id}

Returns one back-office user by numeric ID: username, role ID, PIN setting, name, email, status and timestamps. Passwords and PINs are never returned.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Response Body

OK

*/*
  1. response
status*string

Outcome of the call: SUCCESS when the request worked, ERROR when it did not.

message*string

Short human-readable message describing the result, for logs or display; do not parse it.

data?

The user's profile as it now stands. Passwords and PINs are never returned.

Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/management/users/0'
Example Response
{  "status": "string",  "message": "string",  "data": {    "userId": 0,    "username": "string",    "roleId": 0,    "enablePin": true,    "firstName": "string",    "lastName": "string",    "email": "string",    "passwordUpdatedOn": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "status": "string"  }}