New-RDMCloudVaultAccess
Synopsis
Create a new Devolutions Cloud vault permission assignment object.
Syntax
User
New-RDMCloudVaultAccess [-User] <PSCloudUserInfo> [[-Role] <string>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]UserGroup
New-RDMCloudVaultAccess [-UserGroup] <PSRoleInfo> [[-Role] <string>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]ApplicationIdentity
New-RDMCloudVaultAccess [-ApplicationIdentity] <PSApplicationIdentityInfo> [[-Role] <string>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]Description
Creates a new PSVaultPermissionInfo object for a given user, user group, or application identity. Optionally seeds the permission flags from a predefined vault role. The returned object can be modified and then passed to Set-RDMCloudVaultAccess to apply the permissions to a vault.
Examples
Example 1
Creates a Readers role permission for a user and applies it to a vault.
Example 2
Creates a custom permission for a user group with specific flags enabled and applies it to a vault.
Parameters
-ApplicationIdentity
Application identity to create a permission assignment for.
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-Role
Predefined vault role to seed the permission flags from.
-User
User to create a permission assignment for.
-UserGroup
User group to create a permission assignment for.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSVaultPermissionInfo
Notes
For more information, type "Get-Help New-RDMCloudVaultAccess -detailed". For technical information, type "Get-Help New-RDMCloudVaultAccess -full".
Last updated
Was this helpful?