Rest API - Get Account details API not returning any result with keywords in the url that include Account name
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