To test your bot in a different organization without publishing it to the Teams App Store, you need to ensure that the bot's Azure AD App Registration is configured for multi-tenant access. This means that the bot can be used by accounts in any organizational directory, not just the one that created it. Here are the steps:
Configure Azure AD App Registration for Multi-Tenant Access:
- In the Azure portal, go to the "App registrations" section and select your bot's app registration.
- Under "Authentication", set the "Supported account types" to "Accounts in any organizational directory (Any Azure AD directory - Multitenant)".
- Ensure that the necessary API permissions are granted and admin consent is provided.
- Under "Authentication", set the "Supported account types" to "Accounts in any organizational directory (Any Azure AD directory - Multitenant)".
- Update the Teams App Manifest:
- Update the manifest for your bot app to ensure it is configured correctly for multi-tenant access.
- Make sure the "Bot" section includes the correct Microsoft App ID and the necessary permissions.
- Download the packaged Teams app manifest file (a .zip file) from the Teams App Studio.
- Share this .zip file with the admin of the other organization, along with instructions on how to install the app in their Microsoft Teams environment.
- The admin of the other organization can upload the .zip file to their Microsoft Teams environment. - Once installed, the bot should be available for use within that organization.
By following these steps, you can test your bot in different organizations without needing to publish it to the Teams App Store.
However, if you plan to make the bot widely available to multiple organizations, publishing it to the Teams App Store is a more scalable solution.