Global administrator should have proper impersonation rights to perform Microsoft 365 exchange mailbox backup and restore.
Impersonation rights can be assigned from:
Assign Exchange impersonation rights for Microsoft 365 Exchange Global administrator from Microsoft 365 Exchange Admin:
To assign impersonation rights,
Note: Additionally with impersonation rights, we recommend you to assign discovery management rights to the global administrator. For information on assigning discovery management rights, refer discovery management FAQ.
Assign Exchange impersonation rights for Microsoft 365 Exchange Global administrator from Windows Powershell:
You must connect to the Microsoft 365 exchange server before granting impersonation rights.
To assign impersonation rights,
C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
C:\Windows\system32>$O365Cred = Get-Credential
Note: Assign global administrator login credentials to a variable, so that the credentials can be included in the connection command.
C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $O365cred -Authentication Basic -AllowRedirection
C:\Windows\system32> Import-PSSession $Session
C:\Windows\system32> Enable-OrganizationCustomization
For Example:
C:\Windows\system32> New-ManagementRoleAssignment –Name:backupimpersonation –Role:ApplicationImpersonation –User: "admin@domain.com"Add-RoleGroupMember -Identity "Discovery Management" -Member "Shane@domain.com"
Following is the overall command format:
PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
PS C:\Windows\system32> $O365Cred = Get-Credential
PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $O365cred -Authentication Basic -AllowRedirection
PS C:\Windows\system32> Import-PSSession $Session
PS C:\Windows\system32> Enable-OrganizationCustomization
PS C:\Windows\system32> New-ManagementRoleAssignment –Name:backupimpersonation –Role:ApplicationImpersonation –User: "admin@domain.com"
PS C:\Windows\system32>Add-RoleGroupMember -Identity "Discovery Management" -Member "Shane@domain.com"
Starts at $99.50/year $74.62 for first year