Forum Discussion
Unable to send notification to teams installed application users
I've a custom app built for my organization, and I've deployed the same using the "Teams Toolkit > Zip App Package > For Azure" and added the botId: '28c8b3b1-xxxx-xxxx-xxxx-xxxxxxxxxxxx' in the manifest.json. I'm able to see and manage the app in "Apps: Developer Portal (microsoft.com)" and the bot in "Bot management: Developer Portal (microsoft.com)" as well as in "Bot Framework". But when a user is installing the app from their team's app, a "Participant Join" event is getting fired up, and hitting the endpoint but when the code is trying to fetch the list of installation then I'm getting an exception
Note: The deployed .NET application is having only BOT_ID and BOT_PASSWORD which I got from the "portal.azure" or from "Bot Management",
Does anyone know how I can fix this or if I'm missing something, if so, then please reply as soon as possible as we're having a production deadline coming up and it would be very helpful of you to solve this problem.
Thanks in advance.
7 Replies
- Prasad_Das-MSFT
Microsoft
This can happen if you might have misconfigured the identifier value for the application or sent your authentication request to the wrong tenant.
1. Verify Application Identifier:
- Ensure that the correct
appId
orclient id
is being used in the manifest.json file. ThebotId
should match theappId
of the bot registration in Azure. - Check the
appId
in the Azure portal under the bot registration to confirm it matches the one in the manifest.json file.
2. Check Application Installation:
- Make sure that the application has been installed by the administrator of the tenant or consented to by any user in the tenant.
- Verify that the app has been uploaded to the organization's App Catalog and is available for installation by users in the organization.
3. Add Required Permissions:
- Confirm if the required Microsoft Graph Application-level permissions 'TeamsAppInstallation.ReadWriteForUser.All' have been added to the Azure AD app registration associated with your bot.
4. Update App Settings:
- Ensure that the
appsettings.json
file contains the correct ids and secret details related to the bot registration in Azure.
Similar issue here: Message: AADSTS700016: Application with identifier not found in the directory (domain name). error logging into outlook calendar from web app - Microsoft Q&A
You can also refer:Fix - AADSTS700016: Application not found or consented to by any user. (morgantechspace.com)
However, if you have any business critical issue which need immediate attention, please raise a support request here:
https://docs.microsoft.com/en-us/microsoft-365/admin/get-help-support?view=o365-worldwide&tabs=onlineThanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- sarkarprashantCopper Contributor
Prasad_Das-MSFT Hey thanks for the quick reply, I've the necessary permissions, but the problem is the exception is saying, that it is not able to find the BOT in the BOT framework, even though I've the same bot registered there and used the same ID (Application ID) i.e.,28c8b3b1-xxxxx-xxxxx-xxxxx.
As well as able to find it at "https://dev.botframework.com/bots/channels?id=28c8b3b1-xxxx-xxxx-xxx-xxxxxxxx"- Prasad_Das-MSFT
Microsoft
sarkarprashant - While creating app could you please choose the below option and enter the redirect URI for the app in the following format:
https://token.botframework.com/.auth/web/redirect
- Ensure that the correct