---
title: List Permissions of SAPM Group
slug: single-connect-api-3-2-0/list-permissions-of-sapm-group
description: Learn how to make a POST request using cURL with this comprehensive code example. Discover the step-by-step process of sending a request to a designated URL, including the crucial headers and data.
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "ycO-4Ox3asO_ZLWJE1U3s",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\":13686\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "List Permissions of SAPM Group",
        "jsonExample": "{\n    \"5e4a8a4d-2e02-4d31-8728-f6babee09a1a\": \"FULL_CONTROL\",\n    \"86cdd3e9-696d-4826-aee2-fb12b47eb49e\": \"READ_ONLY\"\n}"
      }
    ],
    "contentType": "application/json",
    "description": "This API allows you to list SAPM group's permissions of which you sent dbId of.",
    "examples": {
      "languages": [
        {
          "id": "nHC_ql3hPLUmmfJxv4wkl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup \\\n     --header 'accept: application/json'"
        },
        {
          "id": "r_ksacU05V_RNY1eBzJvn",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\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": "rmaU5qlK0_2yPquphU1kx",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\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\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "b7M_-5AbfL8ZYFy07jzGj",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/listPermissionOfSapmGroup\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "nHC_ql3hPLUmmfJxv4wkl"
    },
    "results": {
      "languages": [
        {
          "id": "M0QVLYbGR5QeBqp9vLwJ3",
          "language": "200",
          "code": "{\n    \"5e4a8a4d-2e02-4d31-8728-f6babee09a1a\": \"FULL_CONTROL\",\n    \"86cdd3e9-696d-4826-aee2-fb12b47eb49e\": \"READ_ONLY\"\n}"
        }
      ],
      "selectedLanguageId": "M0QVLYbGR5QeBqp9vLwJ3"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}