---
title: Delete Permission From Vault Group
slug: kron-pam-api-collection-381-patch3/delete-permission-from-vault-group
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "QtNCOfCBAjs3d9maurq-a",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromGroup",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>Delete permissions from a Vault group by sending the <code>dbId</code> of the group. Permissions should be provided as <code>user group id: permission type</code> within <code>permissionToDelete</code>. The <code>applyType</code> determines the scope and can be one of the following: THIS_ONLY, ONE_LEVEL, FULL_TREE. If <code>applySub</code> is set to <code>true</code>, these changes will also apply to sub-groups.</p>\n<ul>\n<li>\n<p><strong>dbId</strong>: ID of the Vault group.</p>\n</li>\n<li>\n<p><strong>permissionToDelete</strong>: Array of permissions to delete, each with <code>id</code>, <code>permission</code>, and <code>type</code>.</p>\n</li>\n<li>\n<p><strong>applyType</strong>: Scope of the permission deletion.</p>\n<ul>\n<li>\n<p><strong>THIS_ONLY</strong>: Permissions are deleted only from the specified Vault group.</p>\n</li>\n<li>\n<p><strong>ONE_LEVEL</strong>: Permissions are deleted from the specified Vault group and its immediate child groups.</p>\n</li>\n<li>\n<p><strong>FULL_TREE</strong>: Permissions are deleted from the specified Vault group and all of its descendant groups (child groups and all levels below).</p>\n</li>\n</ul>\n</li>\n</ul>",
    "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": "{\r\n    \"dbId\": 464347,\r\n    \"permissionToDelete\": [\r\n        {\r\n            \"id\": \"c1ea6623-5951-4d11-bafa-302d858e129b\",\r\n            \"permission\": \"FULL_CONTROL\",\r\n            \"type\": \"USER_GROUP\"\r\n        },\r\n        {\r\n            \"id\": \"128829d6-63f4-4679-a0a7-d3b9cfc165cc\",\r\n            \"permission\": \"FULL_CONTROL\",\r\n            \"type\": \"USER_GROUP\"\r\n        }\r\n    ],\r\n    \"applyType\": \"ONE_LEVEL\"\r\n}",
          "value": "{\r\n    \"dbId\": 464347,\r\n    \"permissionToDelete\": [\r\n        {\r\n            \"id\": \"c1ea6623-5951-4d11-bafa-302d858e129b\",\r\n            \"permission\": \"FULL_CONTROL\",\r\n            \"type\": \"USER_GROUP\"\r\n        },\r\n        {\r\n            \"id\": \"128829d6-63f4-4679-a0a7-d3b9cfc165cc\",\r\n            \"permission\": \"FULL_CONTROL\",\r\n            \"type\": \"USER_GROUP\"\r\n        }\r\n    ],\r\n    \"applyType\": \"ONE_LEVEL\"\r\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete Permission From Vault Group",
        "jsonExample": "SUCCESS"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "z0pfIAtNA2Rkg_3paod3p",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromGroup \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\r\\n    \\\"dbId\\\": 464347,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"c1ea6623-5951-4d11-bafa-302d858e129b\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        },\\r\\n        {\\r\\n            \\\"id\\\": \\\"128829d6-63f4-4679-a0a7-d3b9cfc165cc\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ],\\r\\n    \\\"applyType\\\": \\\"ONE_LEVEL\\\"\\r\\n}\"'"
        },
        {
          "id": "7iBtZmMhRz2nA5U4WrniE",
          "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(\"{\\r\\n    \\\"dbId\\\": 464347,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"c1ea6623-5951-4d11-bafa-302d858e129b\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        },\\r\\n        {\\r\\n            \\\"id\\\": \\\"128829d6-63f4-4679-a0a7-d3b9cfc165cc\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ],\\r\\n    \\\"applyType\\\": \\\"ONE_LEVEL\\\"\\r\\n}\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Cs4ApYhxy0Rqmj9Q3YQwB",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromGroup\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\r\\n    \\\"dbId\\\": 464347,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"c1ea6623-5951-4d11-bafa-302d858e129b\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        },\\r\\n        {\\r\\n            \\\"id\\\": \\\"128829d6-63f4-4679-a0a7-d3b9cfc165cc\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ],\\r\\n    \\\"applyType\\\": \\\"ONE_LEVEL\\\"\\r\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "6sqCIfX8hlbV8CIQiDvrd",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromGroup\"\n\npayload = json.dumps(\"{\\r\\n    \\\"dbId\\\": 464347,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"c1ea6623-5951-4d11-bafa-302d858e129b\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        },\\r\\n        {\\r\\n            \\\"id\\\": \\\"128829d6-63f4-4679-a0a7-d3b9cfc165cc\\\",\\r\\n            \\\"permission\\\": \\\"FULL_CONTROL\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ],\\r\\n    \\\"applyType\\\": \\\"ONE_LEVEL\\\"\\r\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "z0pfIAtNA2Rkg_3paod3p"
    },
    "results": {
      "languages": [
        {
          "id": "ylyMiQr4GHskAF1QsXeTj",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "ylyMiQr4GHskAF1QsXeTj"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}