powershell vault/entry template
Hello Maxime,
Thank you for your response, and sorry for the delay.
Could you please try unchecking the option "Create vault with restricted access by default" under Administration > Security Settings > Security? Then, please try rerunning the script and see if the problem persists.

Also, could you please provide us with your current data source in RDM?
If you're using Devolutions Server (DVLS), please provide us with a screenshot of your Administration > System Settings > Vault Management.
Thank you for your collaboration. If you have any other questions, please let us know.
Best regards,
Hey Maxime,
This settings was already disabled. But I think I didn't update-rdmui or something like that. The day after it just worked as one would expect.
powershell vault/entry template
Hello Maxime,
Thank you for contacting us on that matter!
Unfortunately, after confirming with my colleague from the development team, it is currently not possible to create a Vault based on a Vault template via PowerShell. But if you want, I can move your question to the feature request forum.
When you mentioned "(not user or role)", are you referring to the fact that you don't want to do it by User or Roles?
Thank you for keeping me updated. If you have any other questions, please let us know.
Best regards,
Hey Maxim,
When I create a vault using the gui it defaults to Inherited, which is great as a i set some defaults in system settings.
But when creating a vault/repository using powershell it defaults to disallowed.
So how do i create a vault with inherited setting
Vault template
Hello,
Could you please confirm if the following setting is checked at Administration => System settings => Security settings => Create vault with restricted access by default ?
If so, please uncheck it.
Regards,
Min
Unchecking this indeed seems to resolve this.
But i noticed that when i create my vault using powershell it still creates a restricted vault. Instead of template i've set default system permissions and then when manually creating a vault in gui it seems to inherit.
But when using powershell it just sets it to disallowed.
So idk if there is a way to New-RDMRepository -Name vault123 -SetRepository
But with inherited permissions
Vault template
Vault template does not apply permissions to new vault.
Vault template:

Create new vault with template:

New vault settings:

powershell vault/entry template
In rdm I want to create a bunch of vaults using powershell.
But I have a vault template in rdm which i'd obviously want to use, is this somehow an option?
I don't believe there is a pwsh command to get/set the vault templates.
Or is there another command to set the vault permissions (not user or role)
Below is the script i currently have, as you can see i use a entry template aswell, but i cant figure out vault templates.
$datasourceID = '12345'
$customerTemplateID = '12345'
# Set to correct datasource. (poc)
Set-RDMCurrentDataSource -ID $datasourceID
# get vaultnames from csv
$vaultnames = ['test1','test2','test3']
foreach $vaultname in $vaultnames
{
# use vault template somehow
$vault = New-RDMVault -Name $vaultname
Set-RDMVault -Repository $vault
# change to the new vault
Set-RDMCurrentVault -Repository $vault
# apply entry templateset
$s = New-RDMSession -TemplateID $customerTemplateID -Type TemplateGroup
Set-RDMSession $s
}
entry template in vault template
For each customer we create a new vault and for each customer we use the same file structure.
We can select these files and add -> "save as template group".
We can also create a vault template and set permissions etc.
But one of the main reason we would want a vault template is for the folder structure.
Can we add a template option to the vault template or a way to right click some folder and add -> save as vault template
Kind regards.