nbi
nbi

Reputation: 1386

Microsoft Teams Manifest: can contentBotId be of different tenant

I am trying to use contentBotId (Azure bot ID) in my MS Teams manifest file. https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema-dev-preview enter image description here When it is from same tenant that of MS teams domain (xyz.com) then its working and loading the data

But when its from different tenant, then MS Teams is not loading anything

{errorCode: 0, message: "<BadArgument>Unknown bot"}

Is there any restriction on this?

Upvotes: 0

Views: 306

Answers (2)

nbi
nbi

Reputation: 1386

Able to resolve the issue.

Yes it can be from different tenant.

when we use existing AAD instead of creating from Azure bot template, this issue occurs. Seems like MS Teams is not able to find this AAD/ or Bot Handle.

Root Cause (Might be): Manually created AAD have email address of user who have created this in Owners section (screenshot 1), while AAD created from Azure bot template have "Bot Framework Dev Portal" user (Screenshot 2). And I am unable to add this user by searching.

Screnshot 1 Screenshot1- Manfully created AAD

Screenshot2 Screenshot2

Upvotes: 0

Sairam Tadepalli
Sairam Tadepalli

Reputation: 1683

Before creating the MS bot, using ML Studio, create multi-tenant bot for perfect App registration.

Follow the procedure to create the bot and register the application.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

By mentioning all the required. Check the manifest file for the required ContentBotId. Test the URL after app registration into multi-Tenant.

If still the error occurs. We need to setup the connection settings under configurations.

enter image description here

enter image description here

By adding Oauth connection settings we will get some kind of authentication for different clients for the same authentication URL (website URL).

Upvotes: 1

Related Questions