Users

All Posts (4)

avatar

(user deleted)

Disabled

Powershell - Create vault and set default security

avatar
avatar
avatar
avatar

Hello Fredrik,

There is a parameter to change the permission override. Please see the example below;

$vaultID = "878254ae-fee1-45e9-ba14-0feee2a1e358"

$root = (Get-DSFolders ($vaultID)).Body.data | ? { $_.connectionType -eq 92 }

Set-DSEntityPermissions -EntityId $root.id -PermissionOverride [SecurityRoleOverride]::Inherited

Best regards,

Works like a charm except it should be:


Set-DSEntityPermissions -EntityId $root.id -PermissionOverride Inherited

Powershell - Create vault and set default security

avatar
avatar
avatar
avatar

Hello Fredrik,

You would need to use the Set-DSEntityPermissions cmdlet to change the permissions at the vault level. Here is an example to grant view rights to a role.

$vaultID = "878254ae-fee1-45e9-ba14-0feee2a1e358"

$root = (Get-DSFolders ($vaultID)).Body.data | ? { $_.connectionType -eq 92 }

$Permissions = @(

            [ConnectionPermission]@{

                IsEmpty  = $false

                Override = [SecurityRoleOverride]::Custom

                Right    = [SecurityRoleRight]::View

                Roles    = @("99e32472-0278-4eec-8ba7-435e21382034")

            }

)

Set-DSEntityPermissions -EntityId $root.id -Permissions $Permissions

Please note the engineering team will add a cmdlet to return the root session more easily, I will let you know once it is available.

Best regards,

I want specifically to set inherited permission. Is that possible?

Powershell - Create vault and set default security

avatar
avatar
avatar
avatar

I need to be able to create a vault, role group and also set vault permissions using powershell.

The first two i have been able to do but can't figure out how to set the permission on the newly created vault.

DPS - hide/disable "default" vault

avatar
avatar
avatar
avatar
avatar

Hello,

This method doesn't work anymore?

Also, we are not using AD authentication but Azure. Where can I turn off the default vault or delete it?

1 - 4 of 4 items