Skype for Business error 201. Move-CsUser : HostedMigration fault: Error=(201).
When moving a user from Skype for Business Server 20XX to Skype for Business Online (in hybrid deployment), the move command fails with the following error:
Move-CsUser : HostedMigration fault: Error=(201), Description=(Cannot find user in Active Directory with the following SIP URI: “sip:usermailbox”)
NOTE: The following PowerShell command is being used for this operation:
Move-CsUser -Identity sip:usermailbox -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl https://admin1e.online.lync.com/HostedMigration/hostedmigrationservice.svc
NOTE: Check that the user is synched to Azure AD and licensed appropriately.
Resolution
msRTCSIP attribute was not being synched to Azure AD. Check and force synchronization of Azure AD Connect:
Start-ADSyncSyncCycle -PolicyType Delta
When synchronization is complete run Move-CSUser
the command again.
Move-CsUser -Identity sip:usermailbox -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl https://admin1e.online.lync.com/HostedMigration/hostedmigrationservice.svc