Add-VBORbacRole
Short Description
Adds a restore operator role to Veeam Backup for Microsoft 365.
Syntax
This cmdlet provides the following parameter sets:
-
SelectedBackupItemsParameterSet (Default)Add-VBORbacRole -Organization <VBOOrganization> -Name <String> [-Description <String>]
-Operators <VBORbacOperator[]> -SelectedItems <VBORbacRoleItem[]> [-ExcludedItems <VBORbacRoleItem[]>] [<CommonParameters>]
-
AllBackupItemsParameterSetAdd-VBORbacRole -Organization <VBOOrganization> -Name <String> [-Description <String>]
-Operators <VBORbacOperator[]> [-EntireOrganization] [-ExcludedItems <VBORbacRoleItem[]>] [<CommonParameters>]
Detailed Description
This cmdlet adds a restore operator role to Veeam Backup for Microsoft 365. When you add a restore operator role, you assign permissions to restore operators to explore and restore data from backups created by Veeam Backup for Microsoft 365 for specific organization object types (users, groups, sites, teams, or the entire Microsoft 365 organization).
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies a description of the restore operator role. |
|
False |
Named |
False |
|
EntireOrganization |
Defines that the specified restore operators will be able to explore and restore all objects within the specified Microsoft 365 organization. Default: False |
|
True |
Named |
False |
|
ExcludedItems |
Specifies an array of objects to exclude. The cmdlet will add a restore operator role in which the specified restore operators are not allowed to explore and restore backed-up data of these objects.
Note: You cannot exclude objects that have been specified for the
Accepts the
To create this object, run the |
False |
Named |
False |
|
|
Name |
Specifies a restore operator role name. The cmdlet will add a restore operator role with this name. |
|
True |
Named |
False |
|
Operators |
Specifies an array of restore operators. The cmdlet will assign permissions to these objects.
Accepts the
To create this object, run the |
True |
Named |
False |
|
|
Organization |
Specifies a Microsoft organization. The cmdlet will add a restore operator role to the specified Microsoft organization. Note: The organization must be a Microsoft 365 organization with modern app-only authentication or hybrid organization.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
SelectedItems |
Specifies an array of objects to manage. The cmdlet will add a restore operator role in which the specified restore operators are allowed to explore and restore backed-up data of these objects.
Accepts the
To create this object, run the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBOOperatorRole object that contains the restore operator role settings.
Examples
Adding Restore Operator Role to Microsoft Organization
This example shows how add a restore operator role:
- Define an organization group with the display name UsersAlpha as a restore operator of the organization with the name ABC.
- Define all organization users with a name starting with A as objects to manage.
- Define all organization users with a name starting with B as objects to exclude.
|
$org = Get-VBOOrganization -Name "ABC" $Group = Get-VBOOrganizationGroup -Organization $org -DisplayName "UsersAlpha" $restoreoperator = New-VBORbacOperator -Group $Group $UserA = Get-VBOOrganizationUser -Organization $org -DisplayName "A*" $selecteditems = New-VBORbacRoleItem -User $UserA $UserB = Get-VBOOrganizationUser -Organization $org -DisplayName "B*" $excludeditems = New-VBORbacRoleItem -User $UserB Add-VBORbacRole -Organization $org -Name "ABC Restore Operators" -Operators $restoreoperator -SelectedItems $selecteditems -ExcludedItems $excludeditems |
Perform the following steps:
- Run the
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure. cmdlet with theNameparameter to get the organization with the name ABC. Save the result to the$orgvariable. - Run the
Get-VBOOrganizationGroupReturns organization groups. cmdlet with the$orgvariable and theDisplayNameparameter to get an organization group with the display name UsersAlpha. Save the result to the$Groupvariable. - Run the
New-VBORbacOperatorDefines users or groups that will act as restore operators. cmdlet. Set the$Groupvariable as theGroupparameter value. Save the result to the$restoreoperatorvariable. - Run the
Get-VBOOrganizationUserReturns organization users. cmdlet with the$orgvariable and theA*value for theDisplayNameparameter to get all organization users with a name starting with A. Save the result to the$UserAvariable. - Run the
New-VBORbacRoleItemDefines Microsoft 365 organization users, groups, sites or teams that will be managed by restore operators or excluded. cmdlet. Set the$UserAvariable as theUserparameter value. Save the result to the$selecteditemsvariable. - Run the
Get-VBOOrganizationUserReturns organization users. cmdlet with the$orgvariable and theB*value for theDisplayNameparameter to get all organization users with a name starting with B. Save the result to the$UserBvariable. - Run the
New-VBORbacRoleItemDefines Microsoft 365 organization users, groups, sites or teams that will be managed by restore operators or excluded. cmdlet. Set the$UserBvariable as theUserparameter value. Save the result to the$excludeditemsvariable. - Run the
Add-VBORbacRolecmdlet. Specify the following settings:- Set the
$orgvariable as theOrganizationparameter value. - Specify the
Nameparameter value. - Set the
$restoreoperatorvariable as theOperatorsparameter value. - Set the
$selecteditemsvariable as theSelectedItemsparameter value. - Set the
$excludeditemsvariable as theExcludedItemsparameter value.
- Set the
Related Commands
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBOOrganizationGroupReturns organization groups.Get-VBOOrganizationUserReturns organization users.New-VBORbacOperatorDefines users or groups that will act as restore operators.New-VBORbacRoleItemDefines Microsoft 365 organization users, groups, sites or teams that will be managed by restore operators or excluded.