Privilege Cloud Shared Services automate with REST API Powershell request to list safes getting redirected to web page #407
Unanswered
wintersnow24
asked this question in
Q&A
Replies: 1 comment
-
Issue resolved with using URL for privileged cloud portal which is slightly different Privilege Cloud URL |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Privilege Cloud Shared Services automate with REST API Powershell request to list safes getting redirected to webpage
Does safe management script currently supported for privileged cloud integrated with Identity Security Platform?
Able to get $header with bearer token with below URL
$IdentityTenantURL1 = "https://<tenant id>.id.cyberark.cloud"
$header = Get-IdentityHeader -IdentityTenantURL $IdentityTenantURL1 -IdentityUserName $IdentityUserName1
However, to do Safe management, trying to troubleshoot the redirection issue on running the script.
Script: Safe-Management.ps1
Script Source: epv-api-scripts/Safe Management at main · cyberark/epv-api-scripts · GitHub
On using the bearer token to run the Safe-Management.ps1 to list all safes from privileged cloud portal is getting redirected from the PowerShell to html web page <title>CyberArk Identity Login</title>
Please see below screenshot.
For troubleshooting this issue, any leads would be helpful.
$PVWAURL1 = "https://.cyberark.cloud/privilegecloud/"
.\Safe-Management.ps1 -PVWAURL $PVWAURL1 -List -logonToken $header
=======================================
[2024-08-30 02:17:05] [INFO] Starting script (v2.1.8)
[2024-08-30 02:17:05] [INFO] Retrieving Safes...
[2024-08-30 02:17:06] [INFO] Script ended
Beta Was this translation helpful? Give feedback.
All reactions