---
title: Get Approved User List for Group
slug: single-connect-api-3-0-3/get-approved-user-list-for-group
description: This document offers code examples demonstrating how to use the popular curl command to make POST requests to a designated URL. It emphasizes the correct setup of headers to accept and specify JSON content type, and includes a detailed example of the requ
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "0HwQ4PkluCK_f31Hd4_u9",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForGroup",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\":85202\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "This API allows you to get list of approved user list of the SAPM group you sent dbId of. You will get response for this API if you are allowed to see this list.",
    "examples": {
      "languages": [
        {
          "id": "vTFHm4-3Qjkgyw--qioNK",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForGroup \\\n     --header 'accept: application/json'"
        },
        {
          "id": "8lO0jBx9gym35HLoW0sf9",
          "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/getApprovedUserListForGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "HOvxMdPBgVukoDRewKbL0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForGroup\")\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": "2V6i_SJr0cm01UbehQJP8",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForGroup\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "vTFHm4-3Qjkgyw--qioNK"
    },
    "results": {
      "languages": [
        {
          "id": "nw7lr8n7AZgPLYBfBLV7l",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "nw7lr8n7AZgPLYBfBLV7l"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}