A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
Please note that Q&A forum is a public platform, and moderators will modify the question to hide personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.
Dear Steiner, Stephan (sunrise-upc)
Thank you for your detailed explanation.
The Move‑CsUser cmdlet does not interact with Microsoft Graph or Teams administrative endpoints. Instead, it relies on the Skype for Business Hybrid Migration pipeline, which communicates with the legacy Hosted Migration Service endpoint to move the user’s home pool from on‑premises to the Microsoft 365 cloud.
Additionally, Move‑CsUser requires delegated administrative authentication via the hybrid trust relationship between the on‑premises SfB deployment and Microsoft 365. At this time, it does not support application‑only authentication, including tokens obtained via Entra ID app registrations (such as Microsoft Graph or Teams access tokens).
As documented by Microsoft, administrator accounts used to perform Move‑CsUser operations should be excluded from MFA or Conditional Access policies to support automated bulk migration scenarios.
You may consider trying the following approach to see if this helps bypass the limitation:
1> Create a dedicated cloud‑only admin account
2> Assign the following roles:
- Teams Administrator
- Skype for Business Administrator
- User Administrator
3> Exclude this account from:
- MFA
- Conditional Access
After that, you may attempt automation using a scripted approach such as:
$cred = Get-Credential
Import-Csv users.csv |
foreach {
Move-CsUser -Identity $_.UPN
-Target sipfed.online.lync.com
-Credential $cred
-HostedMigrationOverrideUrl $url
}
You may test this setup to see whether it allows the migration to proceed successfully.
Hope this helps, please feel free to share any updates from your testing.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.