Veeam Backup for o365 Account Permission

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

Get-ManagementRoleAssignment -Role “ApplicationImpersonation”
New-ManagementRoleAssignment –Role ApplicationImpersonation –User backup@xxx.com
Get-ManagementRoleAssignment -Role “ApplicationImpersonation”

Get-ManagementRoleAssignment -Role “View-Only Configuration”
New-ManagementRoleAssignment –Role “View-Only Configuration” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “View-Only Configuration”

Get-ManagementRoleAssignment -Role “View-Only Recipients”
New-ManagementRoleAssignment –Role “View-Only Recipients” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “View-Only Recipients”

Get-ManagementRoleAssignment -Role “Mailbox Search”
New-ManagementRoleAssignment –Role “Mailbox Search” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “Mailbox Search”

Remove

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “ApplicationImpersonation” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “View-Only Configuration” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “View-Only Recipients” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “Mailbox Search” -RoleAssigneeType user | Remove-ManagementRoleAssignment

 

https://www.veeam.com/free-backup-microsoft-office-365.html?ad=menu-products

https://helpcenter.veeam.com/docs/vbo365/guide/permisisons_exchange.html?ver=40