Setting Connection Permissions

Setting Connection Permissions

avatar

Hey,

I'm trying to set the following permissions to a new entry via the latest powershell module:
<Security>
<Permissions>
<ConnectionPermission>
<Override>Never</Override>
<Right>Edit</Right>
</ConnectionPermission>
<ConnectionPermission>
<Override>Never</Override>
<Right>Delete</Right>
</ConnectionPermission>
</Permissions>
<RoleOverride>Custom</RoleOverride>
</Security>

I already have the role override and new object creation working, but I'm not seeing a cmdlet or anything that lets me add a new ConnectionPermission to the Security.Permissions array.

Is there a way to do this?

Thanks,

Chris

All Comments (2)

avatar

Hello Chris,

Thank you for reaching out to the Devolutions support team.

Could you tell me which type of data source you are using?
This is all the cmdlet available to set permission:


Cmdlet Get-DSEntriesPermissions 2024.2.3 Devolutions.PowerShell
Cmdlet Get-DSVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Get-HubEntryPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Get-HubSystemPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Get-HubSystemVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Get-HubVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet New-HubEntryPermission 2024.2.3 Devolutions.PowerShell
Cmdlet New-HubSystemPermission 2024.2.3 Devolutions.PowerShell
Cmdlet New-HubSystemVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet New-HubVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Remove-HubEntryPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Remove-HubSystemPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Remove-HubSystemVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Remove-HubVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Set-DSEntityPermissions 2024.2.3 Devolutions.PowerShell
Cmdlet Set-HubEntryPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Set-HubSystemPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Set-HubSystemVaultPermission 2024.2.3 Devolutions.PowerShell
Cmdlet Set-HubVaultPermission 2024.2.3 Devolutions.PowerShell

If you are looking to set permission on a new entry, then the set entry permission could be the one that you are looking for.

Also, you can refer to this script for any help:
https://github.com/Devolutions/RDMSamples-ps/blob/main/module/security/SetPermissionsonFoldersInVault.ps1

Best regards,

Patrick Ouimet

avatar

I'm trying to create a new entry in a MS-SQL data source. I will check that script out!

Thanks,

Chris