-
Notifications
You must be signed in to change notification settings - Fork 250
Description
We are an ISV focused on enterprise. Our chatbot is somewhat custom to each customer and not a candidate for the App Store. Each customer gets their own instance of the app with their own branding. For support reasons, we register the Azure AD app and bot in our own ISV Azure AD tenant, and then our customer O365 Admins will consent to the app permissions as well as upload the Teams manifest provided by us to their org app store. Customers themselves may have multiple Teams tenants (Company merges, splits, acquisitions, dev/prod tenants) and they repeat the process for each tenant they own.
The chatbot is a Teams App (C#/.NET Bot Framework). Associated Azure AD App registration is multi-tenant (users from any org). Bot Services registration had been multi-tenant. Our Bot has SSO enabled, and we were able to (silently) get an access token for users in multiple tenants where our app was deployed (with admin consent). Our bot then used the user access token retrieved from the bot framework to access Graph on behalf of the user (to say create Meetings in their own tenant)
We follow to the letter the instructions provided for enabling SSO in the Teams App, updating the Teams App Manifests with the proper connection strings etc. All this worked fine till end of 2025 when bots could be multi-tenant.
Now that that is deprecated and Bots must be single tenant, is there a mechanism for our bots in the above configuration to get an access token [FOR A USER IN A DIFFERENT TENANT than the bot] to use with Graph in the user tenant?
- Silently as before
- Perhaps using an OAuth Card mechanism
Messaging with the bot from multiple tenants is working fine, it is just the process of getting an access token for a user in a foreign tenant that is failing (Our apps are consented to by the admins in the foreign tenant and the Teams App manifest are likewise loaded and permitted)
Legacy bots that were already multi tenant are working fine. Its just the new bot registrations that can only be single tenant that are unable to get the access token on behalf of a user.