Hi Tomlin Izie,
Thank you for posting your question in the Microsoft Q&A forum.
Based on your description, it seems you are encountering issues after migrating a Teams custom app from a multi-tenant configuration to single-tenant, with the added complexity of moving the Azure AD app registration from one tenant to another. You’ve already tried several recommended steps, but authentication still fails. To better understand the situation and assist you effectively, could you please provide more details on the following points:
- Error Details
You mentioned seeing both “unauthorized” and “invalid tenant” errors. This is a bit confusing since the errors are inconsistent.- Could you clarify when each error occurs?
- If possible, please test on Teams Web and use F12 DevTools (Console or Network tab) to capture any relevant request/response details.
- Token Retrieval
When retrieving the token, could you confirm whether the request is targeting:https://login.microsoftonline.com/<newTenantId>/rather thancommonororganizations? Checking this in the Network tab of DevTools would be helpful. - Manifest Changes
Which properties in the Teams app manifest did you update after migration?- Please list the changes (e.g.,
id,validDomains,webApplicationInfo.resource). - Also, share any updates made to the authentication code in your app (feel free to redact personal or tenant-specific information).
- Please list the changes (e.g.,
- App Registration Approach
You mentioned “updating to single-tenant,” but also that you moved the Azure AD registration to a different tenant.- Did you create a new app registration in the new tenant as single-tenant?
- Or did you update an existing registration from multi-tenant to single-tenant?
Providing these details will help narrow down whether the issue is due to manifest configuration, token authority, or app registration setup.
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.