Set-RDMUserVaultSession Error "Connection has invalid group specified"

Set-RDMUserVaultSession Error "Connection has invalid group specified"

avatar

Hello,

I'm trying to create a new Credential entry in my user vault using the below commands, but I'm getting an error that "Connection has invalid group specified." The $FolderName below does exist and is spelled correctly.

$FolderName = 'Folder'
$newCredentialSession = New-RDMSession -Name $Name -Type 'Credential' -Group $FolderName
Set-RDMSessionUsername -Session $newCredentialSession -UserName $Name
$myPwd = ConvertTo-SecureString 'TestPW' -Force -AsPlainText
Set-RDMSessionPassword -Session $newCredentialSession -Password $myPwd
Set-RDMUserVaultSession $newCredentialSession -Refresh

RDM Version: 2022.2.20.0
Module version: 2022.2.3.0
using Devolutions Server as my datasource.

Please let me know if any additional information is needed!

All Comments (1)

avatar

Hello,

I just tested your code and it works on my end on RDM 2022.2.23 and Devolutions Server 2022.2.10. Your error seems to indicate the folder name is incorrect, can you make sure you write it exactly the same way it is listed in your user vault? It is case sensitive, so that may be the cause of your issue.

Best regards,

Richard Boisvert