---
title: List Groups of Vault Group
slug: kron-pam-api-collection-381-patch3/list-groups-of-vault-group
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "YEG6grtm7_QG1dbXT14RV",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/listGroupsOfSapmGroup",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>List the sub-groups of a Vault group by sending the <code>dbId</code>. If <code>applySub</code> is set to <code>true</code>, it will include sub-groups in the results.</p>\n<p>For pagination, use the <code>firstResult</code> and <code>maxResult</code> parameters.</p>\n<ul>\n<li>\n<p><strong>dbId</strong>: ID of the Vault group.</p>\n</li>\n<li>\n<p><strong>applySub</strong>: Boolean value. If <code>true</code>, includes sub-groups in the results.</p>\n</li>\n<li>\n<p><strong>firstResult</strong>: Index of the first result to retrieve.</p>\n</li>\n<li>\n<p><strong>maxResult</strong>: Maximum number of results to return.</p>\n</li>\n</ul>",
    "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"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\n\t\"dbId\": 85202,\n\t\"applySub\": true,\n    \"firstResult\":0,\n    \"maxResult\":6\n}\n",
          "value": "{\n\t\"dbId\": 85202,\n\t\"applySub\": true,\n    \"firstResult\":0,\n    \"maxResult\":6\n}\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "List Accounts and Groups of Vault Group",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "tgBw4nlz4HWw_C5i4PbY4",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/listGroupsOfSapmGroup \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n\\t\\\"dbId\\\": 85202,\\n\\t\\\"applySub\\\": true,\\n    \\\"firstResult\\\":0,\\n    \\\"maxResult\\\":6\\n}\\n\"'"
        },
        {
          "id": "xzg-bcxxqgJ94lntjCPYE",
          "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 raw = JSON.stringify(\"{\\n\\t\\\"dbId\\\": 85202,\\n\\t\\\"applySub\\\": true,\\n    \\\"firstResult\\\":0,\\n    \\\"maxResult\\\":6\\n}\\n\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/listGroupsOfSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Ed6MEw7pQqc0H2k5jPWp7",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/listGroupsOfSapmGroup\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n\\t\\\"dbId\\\": 85202,\\n\\t\\\"applySub\\\": true,\\n    \\\"firstResult\\\":0,\\n    \\\"maxResult\\\":6\\n}\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "yGBDcubkNe46mrsLx4LqR",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/listGroupsOfSapmGroup\"\n\npayload = json.dumps(\"{\\n\\t\\\"dbId\\\": 85202,\\n\\t\\\"applySub\\\": true,\\n    \\\"firstResult\\\":0,\\n    \\\"maxResult\\\":6\\n}\\n\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "tgBw4nlz4HWw_C5i4PbY4"
    },
    "results": {
      "languages": [
        {
          "id": "N2jtdPvDrbBEs2GGTEt3c",
          "language": "200",
          "code": "// List Accounts and Groups of Vault Group\n"
        }
      ],
      "selectedLanguageId": "N2jtdPvDrbBEs2GGTEt3c"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}