Share via

Bot framework not allowing postmessage for Single tenant Azure App integration

Anonymous
2022-07-29T04:14:20+00:00

Have created a Azure App of type Single Tenant. Whenever trying to send message using service url, I'm getting the below error

{

   "error":"unauthorized_client",

   "error_description":"AADSTS700016: Application with identifier '2a*******' was not found in the directory 'Bot Framework'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.\\r\\nTrace ID: 71cec2ba-c029-4ac9-b00e-68bca11c2f00\\r\\nCorrelation ID: 7fe1e3cc-f070-4abc-9827-7340b391935b\\r\\nTimestamp: 2022-07-27 14:40:44Z",

   "error_codes":[

      700016

   ],

   "timestamp":"2022-07-27 14:40:44Z",

   "trace_id":"71cec2ba-c029-4ac9-b00e-68bca11c2f00",

   "correlation_id":"7fe1e3cc-f070-4abc-9827-7340b391935b",

   "error_uri":"https://login.microsoftonline.com/error?code=700016"

}
Admin from same tenant also unable to postmessage
Microsoft Teams | Microsoft Teams for business | Teams and channels | Manage a team or channel

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-07-29T17:04:12+00:00

    Dear Stuart Gay,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    Based on your description, I understand that you have a concern with “Bot framework not allowing postmessage for Single tenant Azure App integration”.

    Could confirm that you are using the correct ID? According to the error message, you seem to have specified Client Secret instead of App ID in your application. This may also happen if the application has not been installed by the tenant's administrator or approved by any of the tenant's users. Or It's possible that you sent your authentication request to the incorrect tenant.

    This might be the reason why the authentication request includes an incorrect Client ID and Azure AD fails to identify the app, resulting in this error. I suggest searching up your application in Azure AD > App registrations and double-checking that you are using its client ID, ensure the identifier is the Azure client_id.

    In the meantime, I'd like to ask community members to share their experiences or ideas for this. It may benefit other community members. Our forum community appreciates provided knowledge. You may also express your concern in our Microsoft Q&A forum community, an experienced member can provide a workaround there.

    If you have a different situation or concerns, please let me know and provide a more detailed description so we can provide you with more specific assistance.   

    Sincerely,

    De Paul | Microsoft Community Moderator

    *****Note: In the event that you're unable to reply to this thread, please ensure that your Email address is verified in the Community Website by clicking on Your Account Name > "My Profile" > "Edit Profile" > Add your Email Address > tick "Receive email notifications" checkbox > click on "Save".***

    Was this answer helpful?

    0 comments No comments