Set-VBRUserRoleAssignment
Short Description
Modifies a role that is assigned to a user or a user group.
Note |
|
If the four-eyes authorization is enabled, you cannot run this cmdlet. For more information, see the Four-Eyes Authorization section in the User Guide for VMware vSphere. |
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
RoleEntity (Default)Set-VBRUserRoleAssignment -Assignment <VBRUserRoleAssignment> [-RoleEntity <VBRRoleEntity>] [<CommonParameters>]
-
RoleSet-VBRUserRoleAssignment -Assignment <VBRUserRoleAssignment> [-Role <VBRRole>] [<CommonParameters>]
Detailed Description
This cmdlet modifies a role assigned to a user or user group.
Note |
|
Consider the following:
|
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Assignment |
Specifies a user or a user group assignment. The cmdlet will modify a role for this user or a user group.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Role |
Specifies a role that you want to assign to a user. The cmdlet will replace the current role with a new role. You can assign one of the following roles:
|
|
False |
Named |
False |
|
RoleEntity |
Specifies a role. The cmdlet will modify the role defined in the custom roles to the user or user group.
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRUserRoleAssignment object that defines a role for a user or a user group.
Examples
Example 1. Modifying Role to a Built-In Role
|
This example shows how to modify a role that is assigned to the Tech\BackupAdmin user to a custom role.
Perform the following steps:
|
Example 2. Modifying Role to a Custom Role
|
This example shows how to modify a role that is assigned to the
Perform the following steps:
|
Related Commands
Get-VBRRoleEntityReturns roles configured in Veeam Backup & Replication.Get-VBRUserRoleAssignmentReturns a role that is assigned to a user or a user group.