Forum Discussion
Using TeamsActivity.Send.User RSC permission to send activity notifications
Hi,
I am attempting to send activity notifications to a test user, using the TeamsActivity.Send.User RSC permission. I have updated my manifest.json and verified the permission grants via Graph API, per the documentation. However I get an error like the following every time:
Forbidden: Missing role permissions on the request. API requires one of 'TeamsActivity.Send, TeamsActivity.Send.Group'. Roles on the request ''. Resource specific consent grants on the request ''.
Here's a gist showing my manifest, permission grant response and a simple python script showing how I am fetching the token and making the request.
https://gist.github.com/keeth/526665657de6f618fc8101f825a23bbc
I would love some guidance here, or things to check in case I am missing something. Thanks!
- ChetanSharma-msftMicrosoftHello keithfable - Could you please refer this sample and test it once?
https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/graph-rsc/nodeJs/appManifest/manifest.json- keithfableBrass ContributorOk, testing it now, thanks.
- keithfableBrass ContributorI spent a couple of hours fixing all the bugs in this sample to get it working 😞
https://github.com/OfficeDev/Microsoft-Teams-Samples/issues/1112
That being said, after fixing all of the issues, I was able to see it working. I will try to adapt my code to fit the demo.