Forum Discussion

sarkarprashant's avatar
sarkarprashant
Copper Contributor
May 27, 2024

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 "https://dev.teams.microsoft.com/apps/%7B%7BAPP_ID%7D%7D/overview" and the bot in "https://dev.teams.microsoft.com/bots/28c8b3b1-xxxx-xxxx-xxxx-xxxxxxxxxxxx/configure" as well as in "https://dev.botframework.com/bots/channels?id=28c8b3b1-xxxxxxxxxxx". 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

  • 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 or client id is being used in the manifest.json file. The botId should match the appId 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=online 

     

     

     

    Thanks, 

    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. 

    • sarkarprashant's avatar
      sarkarprashant
      Copper 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"

       

Resources