--- title: "Add-VBRUserRoleAssignment" description: "Adds a role to a user or a user group. 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." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/add-vbruserroleassignment.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Roles and Users > Add-VBRUserRoleAssignment" dateModified: "2026-08-19" --- # Add-VBRUserRoleAssignment ## Short Description Adds a role 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](https://helpcenter.veeam.com/docs/vbr/userguide/four_eyes_authorization.html?ver=13) 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)
Role
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Name |
Specifies a name of a user or a user group. The cmdlet will assign a role for this user or user group. Note: You must specify the name of a user or a user group in the DOMAIN\Username format. |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Role |
Specifies a role that you want to assign to a user. You can assign one of the following roles:
|
|
True |
Named |
False |
|
RoleEntity |
Specifies roles. The cmdlet will assign these roles to the user or user group. Accepts the |
True |
Named |
False |