Removes a role from a user or a user group.
If the four-eyes authorization is enabled, you will note be able to 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
Remove-VBRUserRoleAssignment -Assignment <VBRUserRoleAssignment> [<CommonParameters>]
This cmdlet removes a role from a user or a user group.
Accept Pipeline Input
Specifies a user or a user group from which you want to remove a role.
Accepts the VBRUserRoleAssignment object. To create this object, run the Get-VBRUserRoleAssignment cmdlet.
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Removing Role from User
This example shows how to remove a role that is assigned to the Tech\BackupAdmin user.
$role = Get-VBRUserRoleAssignment -Name Tech\BackupAdmin
Remove-VBRUserRoleAssignment -Assignment $role
Perform the following steps:
- Run the Get-VBRUserRoleAssignment cmdlet. Save the result to the $role variable.
- Run the Remove-VBRUserRoleAssignment cmdlet. Set the $role variable as the Assignment parameter value.