Get the Device's Users


Get Users by DeviceId.

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

Request Syntax

GET /device/v1/device/{deviceId}/users


Request Headers

ParameterDescriptionRequired
AuthorizationAuthorization token in the form "Bearer {token}."

Value of type: string
true


Request Path Parameters

ParameterDescriptionRequired
deviceIdValue of type: stringtrue


Request Query Parameters

ParameterDescriptionRequired
limitNumber of records per page.

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

Value of type: string
false


200 Response

successful operation

Response Payload

DescriptionRequired
Object of type: UserMapfalse


Example

Sample request to get users by DeviceId.

Request

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

Response

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