0 votes

While the Exchange Synchro is impersonating an Office 365 mailbox, the following error could be returned by Office 365 while retrieving the date of the server

ExchangeImpersonation SOAP header must not exist for this type of OAuth token

This error only appears with Office 365 account. It can be temporary, disappear the next day or switch to another Office 365 account of the same domain.

asked in Errors by (579 points)

1 Answer

+1 vote
Best answer

Using a user with enough administration right, you can execute the following Powershell on each impersonated mailbox concerned.

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
New-MoveRequest -Identity "impersonationusername@domain.com"

You can check the status of the execution of this command by:

Get-MoveRequest -Identity "impersonationusername@domain.com"

You can also use Get-MoveRequestStatistics to get the progression of the MoveRequest.

The only explanation from Microsoft about this issue is 

something has become corrupt and moving the impersonation mailbox
to a different database causes some form of rebuild

Source: https://tickett.wordpress.com/2018/09/03/microsoft-office365-impersonation-bug/

answered by (579 points)
Welcome to Efficy Overflow, where you can ask questions and receive answers from other members of the community.
1,246 questions
1,517 answers
328 users