pspete / psPAS

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

Get-PASSafe -search xxx-sort asc fails #542

Open begunrom opened 2 weeks ago

begunrom commented 2 weeks ago

Get-PASSafe -search xxx-sort asc fails with

`Invoke-PASRestMethod : [400] Cannot sort by a property other than [safename, managingcpm]. At line:230 char:13

The parameters on the function force you to either select asc or desc, while the rest call expects safename or managingcpm

`PS C:\Users\adm-guro> Get-PASSafe -search XXX -sort managingcpm Get-PASSafe : Cannot validate argument on parameter 'sort'. The argument "managingcpm" does not belong to the set "asc,desc" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again. At line:1 char:31

Your Environment