Edit-RDMUserTemplate
Synopsis
Add or default vaults in the User Template of the System Settings for a specific workspace. New users created in that workspace will gain or lose access to those vaults.
Syntax
AddRepository
Edit-RDMUserTemplate [-DataSource] <Object> [-AddRepository] <Object[]> [-CaseSensitive]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]RemoveRepository
Edit-RDMUserTemplate [-DataSource] <Object> [-RemoveRepository] <Object[]> [-CaseSensitive]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Add or default vaults in the User Template of the System Settings for a specific workspace. New users created in that workspace will gain or lose access to those vaults.
Examples
Example 1
PS C:\> Edit-RDMUserTemplate -DataSource AWorkspace -AddRepository ACommonVault;Add ACommonVault in the User Template in the System Settings of the workspace "AWorkspace".
Example 2
Remove all the repositories in the User Template in the System Settings of the workspace AWorkspace.
Example 3
Remove the repositories CommonVaulta and CommonVaultb in the User Template in the System Settings of the workspace "AWorkspace". The case sensitive switch is not impacting the term [ab], meaning a repository CommonVaultA would not be affected.
Example 4
Add all repositories UserVault? such as UserVaultA and UserVault1 in the User Template in the System Settings of the workspace "AWorkspace". The search for the workspace and the repositories wll be case sensitive.
Parameters
-AddRepository
Add the default vaults in the User Template of the System Settings. Allows to find repositories by ID (Guid), by name (supports wildcards), and repositories (PSRepositoryInfo).
-CaseSensitive
Case sensitive when searching the workspace or the repositories by name
-Confirm
Prompts you for confirmation before running the cmdlet.
-DataSource
Workspace whose settings will be modified. Allows to find the workspace by ID (Guid), by name (supports wildcard), and workspace (PSDataSource).
-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.
-RemoveRepository
Remove the default vaults in the User Template of the System Settings. Allows to find repositories by ID (Guid), by name (supports wildcards), and repositories (PSRepositoryInfo). Removing all default vaults is possible.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
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.
Inputs
System.Management.Automation.PSObject
The workspace whose system settings will be modified. Allows to find the workspace by ID (Guid), by name (supports wildcard), and workspace (PSDataSource).
System.Management.Automation.SwitchParameter
The name of the workspace and the repositories will be a case sensitive search is this switch is present.
Notes
For more information, type "Get-Help Edit-RDMUserTemplate -detailed". For technical information, type "Get-Help Edit-RDMUserTemplate -full".
Last updated
Was this helpful?