pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
295 stars 91 forks source link

Set-PASSafe not working with Gen2 API #383

Closed alexR148 closed 2 years ago

alexR148 commented 2 years ago

Describe the issue Missing Parameter SafeName in Body. Errorcode 400

To Reproduce Just use the function Set-PASSafe Gen2

Expected behavior The safe should be updated

Additional context The error can be fixed by replacing the line 101 of Set-PASSafe with the line $BoundParameters = $PSBoundParameters | Get-PASParameter -ParametersToRemove NewSafeName

engkeen-source commented 2 years ago

I face this issue as well when using set-passafe gen2