epv-api-scripts icon indicating copy to clipboard operation
epv-api-scripts copied to clipboard

Can not use -UpdateMembers Attribute

Open Lukasb1109 opened this issue 9 months ago • 0 comments

Servus, we are trying to add a new Safe with a Script User and then add a local Group to the new safe. After the script successfully created the Safe the group add fails with the message

"User or Group was not found. To automatically attempt to add use AddOnUpdate."

Command: .\Safe-Management.ps1 -PVWAURL "https://%FQDN%/PasswordVault" -UpdateMembers -FilePath "C:\Temp\CyberArk\safe-members-sample.csv"

Group is defenetly created and can be authorized via the pvwa.

If we try the following command the add works fine: .\Safe-Management.ps1 -PVWAURL "https://%FQDN%/PasswordVault" -Update -FilePath "C:\Temp\CyberArk\safe-members-sample.csv"

Is there any bug by the UpdateMembers parameter?

thanks in advance, Lukas

Lukasb1109 avatar Oct 04 '23 15:10 Lukasb1109