Unable to modify Safe Description using PowerShell Module psPAS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Unable to modify Safe Description using PowerShell Module psPAS

L1 Bithead

Hi All,

Trying to update the safe description using PowerShell module but getting an error saying "Missing Mandatory Parameter [SafeName] though i have provided the correct safe name.

 

Kindly refer the attached image for reference.

 

N.B : Safe Name, PVWA URL and the permission on the account is fine.

9 REPLIES 9

L1 Bithead

068Ht00000TjpMfIAJ.jpg

L7 Applicator

Hi @Lakshmidhan Sinha​ Please try including double quotes for the safe name.

Tried but unfortunately same error..

L7 Applicator

Hi @Lakshmidhan Sinha​ Just to check is that the entire script mentioned in the screenshot?

 

I see the API Endpoint / PVWA API URL is not defined

L1 Bithead

Actual pvwa url and safe name is not shared in the screenshot but I have entered the correct values there.

Also the error is mentioning about the missing mandatory parameter [ Safe Name] in invoke-PASRestMethod which I think comes under the workflow process of New-PasSesion. ( not sure though)

L7 Applicator

Hi @Lakshmidhan Sinha​ 

 

Does your script includes 'SafeName' in the 'Body' section of the API?

 

Please have a look at the following link. Hope this helps !

 

https://docs.cyberark.com/PAS/10.10/en/Content/WebServices/Update%20Safe.htm

Actually i am using psPAS module following the link "https://pspas.pspete.dev/commands/Set-PASSafe" to update the safe description and there mentioned the safe name manually directly in the command

L6 Presenter

psPAS is geared towards PAM self-hosted and therefore can be a bit hit or miss when using it with Privilege Cloud. That being said, this should work as it seems a similar issue was fixed in version 5.2. Are you using the latest version?

We are using the psPAS version 5.2.54

  • 239 Views
  • 9 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!