Forum / Remote Desktop Manager - PowerShell Repository

Add Role to a vault

  • Create an Issue
  • Cancel


I'd like to add a role to a vault with the activated property "has access".

Is it possible with powershell ?

(I create sucessul around 500 vaults using powershell, thats way i don't won't set roles manually)


assign Role to vault.jpg
Clock19 days

Hello,

Unfortunately, it's not supported for now. It is on our todo list to implement this functionality (as well as accessing the root folder for the similar purposes).
Our Engineering Ticket is RDMW-3575.

I linked this forum to the ticket, so we'll be able to notify you here when available.


Best regards,



Alex Belisle

signaturesignature

Clock19 days


Hello Alexandre,

thank you for fast reply. Its a pitty that we can't do this at the moment.

And is it possible to set the permissions in the vault by powershell (lets assume the role was added manually).

Over the grant window or other options in the permission screen.

EditPermissions.jpg
Clock19 days

Hello,

I just looked again for this one, and yes you can access the permissions and all other settings of the Root Folder (Vault settings interface) with
Get-RDMRootSession.
This will give you the Root object, on which you can perform all the same actions than regular entries.

I hope this helps!


Best regards,



Alex Belisle

signaturesignature

Clock19 days


Thank you, seams to be an undocumented command, i could not find it in online help.


But the major problem keeps, that I cant assign a role to a vault. I tryed other ways but failed
- to copy a master vault with all roles already assignd -> seems to be not possible to copy vaults
- to export / import a master vault -> possible, but export informations seams not to include roles

Do you have any other idea how i could give user rights on vaults with powershell ?

Clock19 days

Hello,

Yes you're right, it's a very new feature, introduced in 2019.2.18 (https://remotedesktopmanager.com/release-notes)

I'm afraid that for now this cannot be done by Powershell. We will have to wait for the new CmdLet when available...

Sorry I can't be of more help for now.


Best regards,



Alex Belisle

signaturesignature

Clock19 days

Would there be better possibilities doing this with using the "Devolutions Password Server" ?

Clock19 days

Hello,

Unfortunately (again) Powershell only apply to RDM, no matter the data source. DPS on its own has a CLI (restAPi), but it doesn't allow permissions manipulations, its use is mainly getting passwords from other systems (Application To Application Passwords...


Best regards,



Alex Belisle

signaturesignature

Clock19 days