You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to pull safe members from all safes for a given user using the Safe Management script. I am able to pull members for a single safe with no problem, however when I call Safe-Management.ps1 in a foreach loop I am currently prompted for credentials for each call to the script.
I have tried to get a login token using IdentityAuth.psm1 but I have not figured out what the "[email protected]" should be and it continuously returns "Access is denied."
Any thoughts?
Here is an actual run:
PS E:\epv-api-scripts> Import-Module .\IdentityAuth.psm1
PS E:\epv-api-scripts> $header = Get-IdentityHeader -Verbose -Debug -IdentityTenantId 99xx9xxx-9999-9999-xxxx-9999x99x999x -IdentityTenantURL https://xxxx.privilegecloud.cyberark.com/PasswordVault/v10
cmdlet Get-IdentityHeader at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
IdentityUserName: xxxx_safemanager
VERBOSE: URL used : "https://xxxx.privilegecloud.cyberark.com/PasswordVault/v10"
VERBOSE: URL body : "{\"TenantId\":\"99xx9xxx-9999-9999-xxxx-9999x99x999x\",\"User\":\"xxxx_safemanager\",\"Version\":\"1.0\"}"
VERBOSE: POST https://xxxx.privilegecloud.cyberark.com/PasswordVault/v10/Security/StartAuthentication with -1-byte payload
VERBOSE: received 17-byte response of content type
VERBOSE: IdaptiveResponse : "Access is denied."
VERBOSE: SessionId :
VERBOSE: identityHeaders:
Error during logon :
PS E:\epv-api-scripts>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(PowerShell and epv-api-scripts "newbie")
I am attempting to pull safe members from all safes for a given user using the Safe Management script. I am able to pull members for a single safe with no problem, however when I call Safe-Management.ps1 in a foreach loop I am currently prompted for credentials for each call to the script.
I have tried to get a login token using IdentityAuth.psm1 but I have not figured out what the "[email protected]" should be and it continuously returns "Access is denied."
Any thoughts?
Here is an actual run:
Beta Was this translation helpful? Give feedback.
All reactions