Fetch Details of an Account

GET

This API fetches details of a specific account within a resource in PAM360. The response includes account properties, password status, and custom fields.

Request URL

https://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/resources/<RESOURCEID>/accounts/<ACCOUNTID>

ParameterDescriptionValues

RESOURCEID

The ID of the resource for which the details needs to be fetched.
Type : Integer
Mandatory : Yes

Default Value : N/A

ACCOUNTID

The ID of the account for which the details needs to be fetched.
Type : Integer
Mandatory : Yes

Default Value : N/A

Header Parameters

{
"AUTHTOKEN" : "<<Authtoken-generated-from-PAM360>>",
"orgName"   : "<<org display name>>"
}

ParameterDescriptionValues

AUTHTOKEN

Authentication token for the user to authorize the API request.
Type : String
Mandatory : Yes

Default Value : N/A

orgName

Organization name available in PAM360.
Type : String
Mandatory : No

Default Value : The organization to which the user belongs.

Sample Request

cURLPythonPowerShell
curl "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/resources/603/accounts/603" -H "AUTHTOKEN:<<Authtoken-generated-from-PAM360>>" -H "Content-Type:application/x-www-form-urlencoded"
import requests

resource_id = "603"
account_id = "603"
url = "https://<Host-Name-of-PAM360-Server OR IP address>:<Port>/restapi/json/v1/resources/{resource_id}/accounts/{account_id}" headers = { "AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>", "Content-Type": "application/x-www-form-urlencoded" } response = requests.get(url, headers=headers, verify=True) print("Status:", response.status_code) print("Response:", response.text)
$ResourceId = "603"
$AccountId  = "603"
$Url = "https://<Host-Name-of-PAM360-Server OR IP address>:<Port>/restapi/json/v1/resources/$ResourceId/accounts/$AccountId" $Headers = @{ "AUTHTOKEN" = "<<Authtoken-generated-from-PAM360>>" "Content-Type" = "application/x-www-form-urlencoded" } $response = Invoke-WebRequest -Uri $Url -Headers $Headers -Method Get $response.Content

Sample Response

{
  "operation": {
    "name": "GET RESOURCE ACCOUNT DETAILS",
    "result": {
      "status": "Success",
      "message": "Account details fetched successfully"
    },
    "Details": {
      "DESCRIPTION": "",
      "LAST ACCESSED TIME": "N/A",
      "LAST MODIFIED TIME": "Sep 10, 2013 3:33 PM",
      "PASSWORD STATUS": "*****",
      "PASSWDID": "307",
      "CUSTOM FIELD": [
        {
          "CUSTOMFIELDVALUE": "56455567",
          "CUSTOMFIELDTYPE": "Numeric",
          "CUSTOMFIELDLABEL": "Account LIC Number",
          "CUSTOMFIELDCOLUMNNAME": "COLUMN_LONG1"
        },
        {
          "CUSTOMFIELDVALUE": "Sep 10, 2013",
          "CUSTOMFIELDTYPE": "Date",
          "CUSTOMFIELDLABEL": "Acc creation date",
          "CUSTOMFIELDCOLUMNNAME": "COLUMN_DATE1"
        },
        {
          "CUSTOMFIELDVALUE": "Test12345",
          "CUSTOMFIELDTYPE": "Password",
          "CUSTOMFIELDLABEL": "Secondary Password",
          "CUSTOMFIELDCOLUMNNAME": "COLUMN_SCHAR1"
        },
        {
          "CUSTOMFIELDVALUE": "YES",
          "CUSTOMFIELDTYPE": "Character",
          "CUSTOMFIELDLABEL": "Secure Account",
          "CUSTOMFIELDCOLUMNNAME": "COLUMN_CHAR1"
        }
      ]
    }
  }
}



Top