ODM: migrating a teams chat receiving an error: "The client application <clientID> is missing service principal in the tenant <tenantID>"
Legacy Teams consent was granted for the tenant with <tenantID>
According to the ODM User Guide:
NOTE: The following permission sets are legacy and not available for new Quest® On Demand Migration subscribers. If you already use them, they should be replaced with either the corresponding Minimal or Full permission sets.
Migration - Basic
Migration - Mailbox Migration
Migration - SharePoint
Migration - Teams
This particular error was caused by Teams consent (Enterprise App). In order to resolve it, please delete the Quest-Teams Enterprise App from EntraID/Identity, then in ODM->Tenants, select the affected tenant and click on Edit Consents.
If tenant is the source, then Teams-Minimal will suffice. Target tenant should be granted the Teams-Full consent.