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
195 stars 175 forks source link

Logon Token is empty when running script for Privilege cloud #378

Closed etebreezy closed 10 months ago

etebreezy commented 10 months ago

Hi,

I am trying to perform a bulk upload of safes using the script found in this link [https://github.com/cyberark/epv-api-scripts/tree/main/Safe%20Management]. My CyberArk environment is hosted on privilege cloud. Whenever I run the script, after authenticating, it throws the error: Logon token is empty. How can I run the script successfully on Privilege cloud?

Thanks

bab29 commented 10 months ago

Hello,

Please ensure you are first getting a logon token using https://github.com/cyberark/epv-api-scripts/blob/main/Identity%20Authentication/IdentityAuth.psm1 then pass that token using -logonToken