Get the Device's Users

Contents

Get Users by DeviceId.

Endpoint URL: {service.device.url} received in EndpointFetching

Request Syntax


GET /v1/device/{deviceId}/users



Request Headers

Parameter Description Required
Authorization Authorization token in the form "Bearer {token}."

Value of type: string
true


Request Path Parameters

Parameter Description Required
deviceId Value of type: string true


Request Query Parameters

Parameter Description Required
limit Number of records per page.

Value of type: integer
false
pageToken Token of page you want to retrieve.

Value of type: string
false


200 Response

successful operation

Response Payload

Description Required
Object of type: UserMap false


Example

Sample request to get users by DeviceId.

Request


GET device/v1/device/{deviceId}/user HTTP/1.1
Host: Endpoint-URL
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJ

Response


[
  {
      "guid": "string",
      "userId": "string",
      "deviceId": "string",
      "adminFlag": true,
      "status": "APPROVED",
      "attachedOn": "DateAndTime",
      "requestId": null
  }
]

Have question about this section?