Rest API - Get Account details API not returning any result with keywords in the url that include Account name

Rest API - Get Account details API not returning any result with keywords in the url that include Account name

141
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:09 PM


Symptom


using Idira API to get account details. http:///PasswordVault/WebServices/PIMServices.svc/Accounts We are not getting any result when the Keywords in the url include the name of an account. For ex: http:///PasswordVault/WebServices/PIMServices.svc/Accounts?Keywords=test_AccountName&Safe=Test_SAFE When we are using other attributes in the Keywords it is getting the result. http:///PasswordVault/WebServices/PIMServices.svc/Accounts?Keywords=10.20.30.40,Mongo&Safe=Test_SAFE



Environment


11.1;11.2;11.3;11.4;11.5 Privileged Access Manager (PAM, self-hosted) Cyber-Ark API/SDK Cyber-Ark API/SDK REST API

Cause


AccountName is not searchable by default.



Resolution


Try one of the 2 options below:

An AccountName is DeviceType_platform_address_username and

1) Use ',' and separate each search able field: ?Keywords= device Type, platform,address,username&Safe=....

http://<IIS_Server_Ip>/PasswordVault/WebServices/PIMServices.svc/Accounts?Keywords=type,platform,address,username&Safe=safeName

2) In PVWA, Options-> Search Results->change WideAccountsSearch=Yes and use name as keywords: ie: http://<IIS_Server_Ip>/PasswordVault/WebServices/PIMServices.svc/Accounts?Keywords=ORAAS_SMGDEV_oraas-gt-d60-04_TESTMANAGED8281&Safe=Test_SAFE



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001V9rCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail