---
title: Get Approved User List for Account
slug: single-connect-api-3-0-3/get-approved-user-list-for-account
description: Learn how to use the CURL command effectively to fetch an extensive list of approved users for your account through an API endpoint. This document contains a code example comprising essential headers and request parameters to ensure a successful retrieval
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "sHIqd1kPh7WQR1y7IA6Cx",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForAccount",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\":86394\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 account you sent dbId of. You will get response for this API if you are allowed to see this list.",
    "examples": {
      "languages": [
        {
          "id": "7TIfdrL4_iCs90b5i76cp",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForAccount \\\n     --header 'accept: application/json'"
        },
        {
          "id": "8B_-nMJl55WqiAhbIEeMl",
          "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/getApprovedUserListForAccount\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "EMTTZCG1UNN2UwlNxakv9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForAccount\")\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": "yvAFvAQcdhURZ1jG9nluB",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovedUserListForAccount\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "7TIfdrL4_iCs90b5i76cp"
    },
    "results": {
      "languages": [
        {
          "id": "jt5GGAbd8Syo4GMVrg1uJ",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "jt5GGAbd8Syo4GMVrg1uJ"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}