cyberark / epv-api-scripts

These API scripts enable CyberArk users to automate privileged account management task like account creation, user management, and more.

Home Page:https://www.cyberark.com/best

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add new member to existing safe with Safe-Management.ps1

imittal312 opened this issue · comments

Using this command to Update a list of members from a file and if member is missing attempt to add them::
.\Safe-Management.ps1 -PVWAURL "https://myPVWA.myDomain.com/PasswordVault" -UpdateMembers -FilePath "C:\Temp\safe-members-sample.csv" -AddOnUpdate

This command simply updates permissions on existing safe members only. Doesn't add the missing member.
Following error occurs:
There was an error setting the membership for <user/group> on in the Vault. The error was:
The page cannot be displayed because an internal server error has occurred. (Internal Server Error)

Kindly help in fixing this.

commented

Can you provide some background on your environment? Is it on-prem or PCloud? If PCloud is it standalone or Shared Services? Where are the users located, Active Directory, LDAP Directory, Azure Active Directory, Other?

It is on-prem standalone environment. I tried this script for Cyberark local users/groups (created in PA Client) as well as LDAP users/groups.

It is on-prem standalone environment. I tried this script for Cyberark local users/groups (created in PA Client) as well as LDAP users/groups.

Can somebody pls help on this.

Can you provide some background on your environment? Is it on-prem or PCloud? If PCloud is it standalone or Shared Services? Where are the users located, Active Directory, LDAP Directory, Azure Active Directory, Other?

Please check my responses in another comment

commented

I have tested the current version against both on-prem and PCloud Shared Services environments and it is working as designed.

For more help please provide 2 lines from your CSV input file.

I have tested the current version against both on-prem and PCloud Shared Services environments and it is working as designed.

For more help please provide 2 lines from your CSV input file.
Please find my csv file, powershell script, errors.
Created the csv file based on the below points:
image
image
image

I have tested the current version against both on-prem and PCloud Shared Services environments and it is working as designed.
For more help please provide 2 lines from your CSV input file.
Please find my csv file, powershell script, errors.
Created the csv file based on the below points:
image
image
image

I have tested the current version against both on-prem and PCloud Shared Services environments and it is working as designed.
For more help please provide 2 lines from your CSV input file.
Please find my csv file, powershell script, errors.
Created the csv file based on the below points:
image
image
image

Any update?

commented

Can you run with -verbose and email me directly a copy of the log file? brian.bors@cyberark.com