---
title: List Masking Policy Tracking
slug: single-connect-api-3-2-0/list-masking-policy-tracking
description: Learn how to use cURL to make a POST request effortlessly with this helpful document. It features a step-by-step code example, demonstrating how to send data and specify headers to a specific URL. Enhance your programming skills and become proficient in h
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "8lDN6POyuUU6Ks8a1I-NT",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sqlproxy/listAuthPolicyTracking",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "Content-Type",
          "type": "string",
          "example": "application/json",
          "description": ""
        },
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\r\n        \"userEid\": \"SQLPROXY\",\r\n        \"userGroupName\": \"Oracle UG\",\r\n        \"applicationUsageType\": \"sqlPolicy\",\r\n        \"deviceGroupName\": \"Oracle DG\",\r\n        \"showDeviceDetails\": true,\r\n        \"showDeviceGroupDetails\": true,\r\n        \"showUserDetails\": true,\r\n        \"showUserGroupDetails\": true\r\n    }",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "<p>This method lists assigned policies to a user / user group.\r\n\"applicationUsageType\" can recieve \"sqlPolicy\" and sqlMaskingPolicy values.\r\nsqlPolicy filter brings policies required for connection (white key/ black key policies).\r\nsqlMaskingPolicy brings policies reqired for only masking.</p>",
    "examples": {
      "languages": [
        {
          "id": "WoUZTXDwtukjT_Y7kyuC6",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sqlproxy/listAuthPolicyTracking \\\n     --header 'accept: application/json'"
        },
        {
          "id": "dDOgvFQU0RPd6sxZVjzqb",
          "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/sqlproxy/listAuthPolicyTracking\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "MOav58I4nfgUNINUzShYH",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sqlproxy/listAuthPolicyTracking\")\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": "sVaeqiagFfYqTtC4KOmU0",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sqlproxy/listAuthPolicyTracking\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "WoUZTXDwtukjT_Y7kyuC6"
    },
    "results": {
      "languages": [
        {
          "id": "6XU4wMmnkKzdZ1-99ILvK",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "6XU4wMmnkKzdZ1-99ILvK"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}