Closed Kulan117 closed 1 year ago
Can you complete the form? Reasons: https://pspas.pspete.dev/docs/troubleshooting/#logging-an-issue
With no more details forthcoming..... maybe specify the -ExtraPass1Folder
parameter
I have updated this tracker to the specified format, please let me know for any details. I tried with -ExtraPass1Folder as root directory but still same
The project cannot test against Privilege Cloud, so no attempt to replicate the issue will be possible.
There may be fixes included in psPAS versions released since 5.2.59.
For 12.6, consider using the Gen2 parameterset of Add-PASAccount
, and link accounts using the Set-PASLinkedAccount
command
sure let me try that and post the update! Thank you!
Hi @pspete
I was successful using the Set-PasLinkedAccount command when adding the account ID and name manually. But if I am passing the Account ID and name as variable from the Add-PASAccount command as below I am getting the below error. Can you please help on this
$value1 = Add-PASAccount -secretType Password -secret $Password -SafeName "keyssafe" -PlatformID "keysplatform" ` -Username $uname -platformAccountProperties $platformAccountProperties
$value2 = Add-PASAccount -secretType Password -secret $Password -SafeName "rootsafe" -PlatformID "rootplatform" ` -Address "https://console.aws.amazon.com/console/home" -Username $uname -platformAccountProperties $platformAccountProperties
$accid= $value1 | Select-Object id $username = $value2 | Select-Object name
Set-PASLinkedAccount -AccountID $accid -safe "keyssafe" -extraPasswordIndex 1 -name $username -folder root
Error 1: When passing both -Account ID and -name as variable
Invoke-PASRestMethod : [400] Account id value is invalid. At line:57 char:4
+ CategoryInfo : NotSpecified: ({"ErrorCode":"C...e is invalid."}:ErrorRecord) [Invoke-PASRestMethod], Excepti
on
+ FullyQualifiedErrorId : CAWS00001E,Invoke-PASRestMethod
Error 2: When passing -Account ID as actual ID and -name as variable
Invoke-PASRestMethod : [404] Linked account was not found. At line:57 char:4
+ CategoryInfo : NotSpecified: ({"ErrorCode":"P...as not found."}:ErrorRecord) [Invoke-PASRestMethod], Excepti
on
+ FullyQualifiedErrorId : PASWS307E,Invoke-PASRestMethod
It works when passing the below **Set-PASLinkedAccount -AccountID 222222 -safe "keyssafe" -extraPasswordIndex 1 -name gotest6 -folder root
**
Take a look at the variable values... they look like they might be objects with property values rather than just the id/Name values
closing as nothing to fix.
believe you just need to fix your variables, or reference them differently (i.e. Set-PASLinkedAccount -AccountID $accid.id -safe "keyssafe" -extraPasswordIndex 1 -name $username.name -folder root
)
Thank you for your help! I fixed the variables and now it works as expected!
Describe the issue When I am using the below command I am getting the error below
To Reproduce Steps to reproduce the behavior:
Expected behavior The new account to be added along with the login account being tagged to the account.
Screenshots & Console Output If applicable, add screenshots and/or console output to help explain your problem.
Your Environment Privileged Cloud v12.6
Additional context Add any other context about the problem here.