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

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

Closed imittal312 closed 10 months ago

imittal312 commented 1 year ago

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.

bab29 commented 1 year ago

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?

imittal312 commented 1 year ago

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.

imittal312 commented 1 year ago

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.

imittal312 commented 1 year ago

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

bab29 commented 1 year ago

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.

imittal312 commented 1 year ago

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

imittal312 commented 1 year ago

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

imittal312 commented 1 year ago

Any update?

bab29 commented 1 year ago

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