cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.
https://www.cyberark.com/best
Apache License 2.0
197 stars 176 forks source link

Unable to update Account Properties with REST API script. #340

Closed imittal312 closed 10 months ago

imittal312 commented 1 year ago

Working on on-prem v12.6 cyberark environment. Using the cyberark user to update account properties. Able to do it manually on PVWA but unable to do it via Script. Attaching the csv file used, powershell script used, error obtained. I have created the csv file based on the below points: image image image

Kindly help in troubleshooting.

imittal312 commented 1 year ago

This is urgent. Could someone help me pls.

bab29 commented 1 year ago

Please reproduce error with -verbose and attach log

imittal312 commented 1 year ago

@bab29 attached the log file. Kindly refer the latest timestamp logs. I have entered only those values in csv which needs to be updated (except safe and name parameters). image Account_Onboarding_Utility.log

bab29 commented 1 year ago

According to the log file platformID has a tab at the end which is causing issues

/platformAccountProperties/platformID\t

I also noticed it was trying to set username to "" so I'm looking into that.