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
203 stars 176 forks source link

Retrieve real version of PCloud tenant as part of `psPASFormat` parameter for `Get-IdentityHeader` in `IdentityAuth.psm1` #330

Closed aaearon closed 1 year ago

aaearon commented 1 year ago

Desired Outcome

Currently the version used when creating a psPAS.CyberArk.Vault.Session is hardcoded to be 12.6. The psPAS module uses this property to determine if the PAS version has the needed functionality. This PR makes it so the real version of the PCloud tenant is used as the ExternalVersion property when creating psPAS.CyberArk.Vault.Session.

Implemented Changes

The function now retrieves the real ExternalVersion of the PCloud tenant and uses it when creating the psPAS.CyberArk.Vault.Session object.

Connected Issue/Story

n/a

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security