Forum Discussion
lvoouiilliot
Nov 24, 2022Copper Contributor
Teams Toolkit multi tenant app
Hi, I ´m currently developping a teams app whith the teams toolkit and when i want to switch my app on multi tenant (default mode is single tenant), it works until the next launch. After that in azur...
- Nov 28, 2022lvoouiilliot - Could you please confirm if your issue has resolved with above suggestion or still looking for any help?
Sayali-MSFT
Microsoft
You can configure your application to accept sign-ins from any Azure Active Directory (Azure AD) tenant by converting it to multi-tenant. Users in any Azure AD tenant will be able to sign In to your application after consenting to use their account with your application.
Reference Document-
1.https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant
2. Single and multi-tenant apps in Azure AD - Microsoft Entra | Microsoft Learn
lvoouiilliot
Nov 25, 2022Copper Contributor
Thanks for your response, but I've already tried to convert my app to multi Tenant and it works, but when i'm executing my code, my app turns on the single tenant mode in azure (whithout my interraction). I'm using the teams Toolkit so I guess that there are configurations files which say that my app is a single tenant app
- lvoouiilliotNov 25, 2022Copper ContributorOK I found something, when we use Teams Toolkit we have an azure ad template which is launched each time that we execute our code, in this template I had this line : "signInAudience": "AzureADMyOrg". When you remove this line and change your app on multi tenant mode in azure, it works.
- Sayali-MSFTNov 25, 2022Microsoft
lvoouiilliot - Without removing the signInAudience, you can replace the value with AzureADMultipleOrgs and check it once.
"signInAudience": "AzureADMultipleOrgs"
Reference Document-https://learn.microsoft.com/en-us/azure/active-directory/develop/supported-accounts-validation- Sayali-MSFTNov 28, 2022Microsoftlvoouiilliot - Could you please confirm if your issue has resolved with above suggestion or still looking for any help?