Info
Specific permissions are required to successfully proceed a migration to Office 365. These can be added e.g using PowerShell.
Solution
The following permissions are required:
* Application Impersonation permissions
Using PowerShell the steps are:
 
Connect to Office 365

$o365Cred = Get-Credential $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $o365Cred -Authentication Basic -AllowRedirection Import-PSSession $Session

 
Application Impersonation
The command to execute is:

New-ManagementRoleAssignment –Name "ArchiveShuttle_Impersonation" –Role "ApplicationImpersonation" –User serviceaccount@contoso.com

 
The following steps are not strictly necessary, but may aid troubleshooting:
 
Permission to a Single Mailbox
The commands to execute are:

Add-MailboxPermission -identity bob@domain.com -user serviceaccount@contoso.com -AccessRights FullAccess Add-RecipientPermission –identity bob@domain.com -AccessRights SendAs -Trustee serviceaccount@contoso.com

 
Permissions to All Mailboxes
The commands to execute are:

Get-Mailbox | Add-mailboxpermission -user serviceaccount@contoso.com  -AccessRights FullAccess Get-Mailbox | Add-RecipientPermission -AccessRights SendAs -Trustee serviceaccount@contoso.com

 
 
 

Print Friendly, PDF & Email