Get Device Groups

Gets the Groups that are Linked to a specific device.

URL

https://{{HOST}}/security/device/groups?v={version}&deviceId={deviceId}

Method

GET

Required IMS Scopes

  • securityapi_all

Versions Supported

  • 2.0 (Default)

URL Query Parameters

Name Description Example Type
v
optional
Version of the api to use /device?v=2.0 number
deviceId
required
The ID of the device. /device?deviceId=testDevice string

Request Header Parameters

Type Value Description
Authorization
required
Bearer {access_token} IMS access token

Example

Request

curl -X GET 
  'https://{{HOST}}/securityapi/device/groups?v=2.0&deviceId=testDevice' 
  -H 'Authorization: Bearer {access_token}'

Response

{
    "id": "JCI_test",
    "subject": null
}

Errors

Error Description
Error Name Description of Error

Response Body Parameters

Name Description Schema
Object Name Description object definition
id Description object definition
subject Description object definition