Pcloud login api problem #471
Closed
nawazsarwar124
started this conversation in
General
Replies: 1 comment
-
I opened the issue |
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
-
I am trying to use the pspas module to connect to the pCloud solution with the following command:
New-PASSession -TenantSubdomain $identityTenantId
So my command becomes:
New-PASSession -TenantSubdomain Aav111
I logged in successfully, but when I call the module, for example, Get-PASAccount, I receive an error. I tried to investigate the error and what I understood is that the module is calling the URL https://$identitytenantid.privilegecloud.cyberark.cloud/PasswordVault/API/Accounts/. However, CyberArk uses two different URLs: one with an ID and the other with a hostname, which the client selects for their tenant.
For example:
https://aav111.privilegecloud.cyberark.cloud/PasswordVault/API/Accounts/ (API does not work)
https://hostname.privilegecloud.cyberark.cloud/PasswordVault/API/Accounts (API works)
to resolve this issue we added TenantBase parameter
and a new variable
and then if TenantBase parameter is not null or empty we assign this value to the Script scope variable $Uri
so we can logon with the first url (TenantSubdomain) and execute the action with the other url (TenantBase) without changing the other functions
After making this change, it started working correctly.
do you have another way to do this correctly or do we keep the fix?
Beta Was this translation helpful? Give feedback.
All reactions