Forum Discussion
Notifications for custom applications
- Aug 26, 2022
Based on the error it seems like the app is not installed in the Teams. Could you please follow this document and sample to set it up correctly.
Hi,
I tried using sendActivityNotification API but got the below error every time.
Application with AAD App Id 'de8bc8b5-d9f9-48b1-a8ad-b748da725064' is not authorized to generate custom text notifications about '/v1.0/users/XXXX/teamwork/Microsoft.Teams.GraphSvc.sendActivityNotification' to the recipient. Ensure that the expected Teams app is installed in the target scope (user, team, or chat).
The token which is generated has below scopes:
openid profile User.Read email TeamsActivity.Send
de8bc8b5-d9f9-48b1-a8ad-b748da725064 is the appid of the graph explorer, in my case I want API to be executed from an external system.
Let me know if I am missing anything and how to achieve it.
Based on the error it seems like the app is not installed in the Teams. Could you please follow this document and sample to set it up correctly.
- Pratapkarn2186Aug 27, 2022Copper Contributor
Thanks Meghana, it worked.- Meghana-MSFTAug 28, 2022Former EmployeeCould you please confirm if this issue is resolved as well - https://stackoverflow.com/questions/73502760/sending-notification-to-custom-teams-application
- Pratapkarn2186Sep 02, 2022Copper ContributorYes..