---
title: List Permissions of Vault Group
slug: kronpam-api-collection-350/list-permissions-of-vault-group
docTags: 
createdAt: 2024-07-22T09:58:47.223Z
---

{
  "id": "WgD6RKyhDLpvQpnKGK2AS",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup",
    "name": "",
    "description": "This API allows you to list Vault group's permissions of which you sent dbId of.",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "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\":13686\n}",
          "value": "{\n\t\"dbId\":13686\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "List Permissions of Vault Group",
        "jsonExample": "{\n    \"5e4a8a4d-2e02-4d31-8728-f6babee09a1a\": \"FULL_CONTROL\",\n    \"86cdd3e9-696d-4826-aee2-fb12b47eb49e\": \"READ_ONLY\"\n}"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "79M_2_6xa-7cS-rFXpDRt",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n\\t\\\"dbId\\\":13686\\n}\"'"
        },
        {
          "id": "bFrIqmLCjx1fqNNVjpWaP",
          "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\\\":13686\\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/listPermissionOfSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "yUd9GIJ_RDZzYOayh6PUE",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup\")\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\\\":13686\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "biATnRjFH_E5Ls141mSNf",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup\"\n\npayload = json.dumps(\"{\\n\\t\\\"dbId\\\":13686\\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": "79M_2_6xa-7cS-rFXpDRt"
    },
    "results": {
      "languages": [
        {
          "id": "rdfD9YRcROp_lWye6HfvF",
          "language": "200",
          "code": "{\n    \"5e4a8a4d-2e02-4d31-8728-f6babee09a1a\": \"FULL_CONTROL\",\n    \"86cdd3e9-696d-4826-aee2-fb12b47eb49e\": \"READ_ONLY\"\n}"
        }
      ],
      "selectedLanguageId": "rdfD9YRcROp_lWye6HfvF"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}