If you have been trying to migrate data into an Office 365 account and have experienced this issue:
Your migration failed. Http POST request to xxxxxxxx.outlook.com' failed - 401 Unauthorized.
You may have performed these steps before migration:
- A new global admin Office 365 account was created.
- The global admin user was deleted.
- The user was recreated, with the same UPN.
Though you may be able to log in to this Office 365 account with the respective credentials, if this admin account is involved in the migration, perhaps you will get the 401 error due to a known Office 365 bug.
To fix this bug ,you have to use Windows PowerShell to manage Office 365. You first need to install the Office 365 cmdlets. The steps for installing them are as follows: http://onlinehelp.microsoft.com/office365-enterprises/hh124998.aspx
Then, try these steps:
- Run Connect-MsolService and input Office 365 administrator account.
- Run Get-MsolUser -ReturnDeletedUsers –SearchString useralias | FL to get the user ObjectID.
- Run Remove-MsolUser –ObjectId xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx -RemoveFromRecycleBin to remove the old deleted user.
- Run Get-MsolUser –ReturnDeletedUsers to verify the deleted user account is removed
- The PowerShell window will prompt as follows:
Now you can resubmit the failed migration.