psPAS icon indicating copy to clipboard operation
psPAS copied to clipboard

Add-PASAccount : Invoke-PASRestMethod 400

Open arkayali opened this issue 3 years ago • 1 comments

Hi,

I'm new to psPAS and need to add accounts to CyberArk via API.

After running Add-PASAccount cmdlet, I receive the following error:

ErrorRecord) [Invoke-PASRestMethod], Exception

  • FullyQualifiedErrorId : 400,Invoke-PASRestMethod

The cmdlet parameters seems to be good and I ran add-PASSafe and it worked good !!

I added -ErrorVariable to cmdlet to get more information and got: The server encountered an error processing the request

Any suggestion here ?

arkayali avatar Aug 13 '22 20:08 arkayali

@arkayali - refer to the troubleshooting steps here: https://pspas.pspete.dev/docs/troubleshooting/ and the command documentation here: https://pspas.pspete.dev/commands/Add-PASAccount

Consider providing the details requested in the issue template to better enable any assistance. Feel free to close this issue and start a new one if that is easier.

pspete avatar Aug 14 '22 00:08 pspete

See #407

pspete avatar Aug 14 '22 22:08 pspete