---
title: Delete Permission From Vault Account
slug: kron-pam-api-collection-3-9-0/delete-permission-from-vault-account
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "L7bK0VXkesPCQfIClKDrz",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromAccount",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This API revokes specific permissions from a designated Vault account in KRON PAM. Permissions can be removed from either individual users or user groups.</p>\n<ul>\n<li>\n<p><strong>sapmdbId</strong>: Identifier of the Vault account in KRON PAM.</p>\n</li>\n<li>\n<p><strong>permissionToDelete</strong>: Array of objects detailing the permissions to be revoked.</p>\n<ul>\n<li>\n<p><strong>id</strong>: Identifier of the permission group.</p>\n</li>\n<li>\n<p><strong>eid</strong>: External identifier for the user or user group.</p>\n</li>\n<li>\n<p><strong>permission</strong>: Access level to be removed (e.g., LIST_ONLY, MANAGE_PASSWORD, READ_ONLY, FULL_CONTROL).</p>\n</li>\n<li>\n<p><strong>type</strong>: Indicates if the permission is for a user or a user group.</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    \"sapmDbId\": 384810,\r\n    \"permissionToDelete\": [\r\n        {\r\n            \"id\": \"DEFAULT_GROUP_SYSYEM_ADMINS\",\r\n            \"eid\": \"esc1l1\",\r\n            \"permission\": \"LIST_ONLY\",\r\n            \"type\": \"USER_GROUP\"\r\n        }\r\n    ]\r\n}\r\n",
          "value": "{\r\n    \"sapmDbId\": 384810,\r\n    \"permissionToDelete\": [\r\n        {\r\n            \"id\": \"DEFAULT_GROUP_SYSYEM_ADMINS\",\r\n            \"eid\": \"esc1l1\",\r\n            \"permission\": \"LIST_ONLY\",\r\n            \"type\": \"USER_GROUP\"\r\n        }\r\n    ]\r\n}\r\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete Permission From Vault Account",
        "jsonExample": "SUCCESS"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "mZPEgE5cosgCKWlsFQDFs",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromAccount \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\r\\n    \\\"sapmDbId\\\": 384810,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\",\\r\\n            \\\"eid\\\": \\\"esc1l1\\\",\\r\\n            \\\"permission\\\": \\\"LIST_ONLY\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ]\\r\\n}\\r\\n\"'"
        },
        {
          "id": "T_SwUvrZGL_ixCysOUyRn",
          "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    \\\"sapmDbId\\\": 384810,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\",\\r\\n            \\\"eid\\\": \\\"esc1l1\\\",\\r\\n            \\\"permission\\\": \\\"LIST_ONLY\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ]\\r\\n}\\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/deletePermissionFromAccount\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "aQDkKqy43ETSgEptYb0nX",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromAccount\")\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    \\\"sapmDbId\\\": 384810,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\",\\r\\n            \\\"eid\\\": \\\"esc1l1\\\",\\r\\n            \\\"permission\\\": \\\"LIST_ONLY\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ]\\r\\n}\\r\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "FAUz_5ktgUUdQT7Mqaa7r",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/deletePermissionFromAccount\"\n\npayload = json.dumps(\"{\\r\\n    \\\"sapmDbId\\\": 384810,\\r\\n    \\\"permissionToDelete\\\": [\\r\\n        {\\r\\n            \\\"id\\\": \\\"DEFAULT_GROUP_SYSYEM_ADMINS\\\",\\r\\n            \\\"eid\\\": \\\"esc1l1\\\",\\r\\n            \\\"permission\\\": \\\"LIST_ONLY\\\",\\r\\n            \\\"type\\\": \\\"USER_GROUP\\\"\\r\\n        }\\r\\n    ]\\r\\n}\\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": "mZPEgE5cosgCKWlsFQDFs"
    },
    "results": {
      "languages": [
        {
          "id": "lIifkeMsNWqmSFonmqzfD",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "lIifkeMsNWqmSFonmqzfD"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}