---
title: Get Device Realm Details (Device/User Group Breakdown)
slug: kron-pam-api-collection-3-9-0/get-device-realm-details-deviceuser-group-breakdown
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "ZrR9tpPVzwE0b8iq55P_D",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/discovery/ui/getDeviceRealmDetails/{{realmDbId}}",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>Returns the resolved device names and user names belonging to a single Device Realm, identified by its <code>dbId</code> (path parameter <code>realmDbId</code>). Used by the PAM UI's Realm detail/edit view to show what a realm actually contains before editing.</p>\n<h4>Response shape:</h4>\n<pre><code class=\"language-json\">{\n  \"deviceList\": [\"&#x3C;device name>\", ...],\n  \"userList\": [\"&#x3C;user name>\", ...]\n}\n\n</code></pre>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        },
        {
          "name": "realmDbId",
          "description": "",
          "default": "realmDbId",
          "value": "realmDbId",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "getDeviceRealmDetails",
        "jsonExample": "{\n    \"deviceList\": [\"Router1\"],\n    \"userList\": [\"testuser\"]\n}"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "vyZ2HU2EC3LsXB1D7Ej3O",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/discovery/ui/getDeviceRealmDetails/{{realmDbId}} \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "OOZGk1yrR-A3vyrZPtHTO",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/discovery/ui/getDeviceRealmDetails/{{realmDbId}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "NuAuosUlFVXcz_4vQX1Rd",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/ui/getDeviceRealmDetails/{{realmDbId}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "VpYm46h0a82FixuB-NM6H",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/ui/getDeviceRealmDetails/{{realmDbId}}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "vyZ2HU2EC3LsXB1D7Ej3O"
    },
    "results": {
      "languages": [
        {
          "id": "a3772lOoa5GmzaliwnHf6",
          "language": "200",
          "code": "{\n    \"deviceList\": [\"Router1\"],\n    \"userList\": [\"testuser\"]\n}"
        }
      ],
      "selectedLanguageId": "a3772lOoa5GmzaliwnHf6"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}