Nov 02 2022 09:24 AM
Hi,
I am trying to subscribe to messages events of any chat where my bot is installed using this endpoint :
https://learn.microsoft.com/en-us/graph/teams-changenotifications-chatmessage#subscribe-to-messages-...
Unfortunately, when calling this endpoint I get this error :
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: Forbidden; Reason: AAD App Id 'XXX' is not allowed to manage the Teams App 'YYY'.]",
"innerError": {
"date": "2022-10-27T10:25:13",
"request-id": "c2d30aa0-eade-4324-9df7-71696d2a5bbc",
"client-request-id": "c2d30aa0-eade-4324-9df7-71696d2a5bbc"
}
}
}
Note that for security reasons I have masked my AppId and TeamsAppId from the above error. I have checked them and they are correct.
I have tried granting my token the following permissions (TeamsAppInstallation.ReadWriteForChat.All, TeamsAppInstallation.ReadWriteForTeam.All, TeamsAppInstallation.ReadWriteForUser.All), but I still get the same error.
Any help would be appreciated.
Nov 02 2022 11:44 PM
Nov 03 2022 06:17 AM
Nov 03 2022 09:14 AM
@Meghana-MSFT The subscription wasn't created since the above request to create it failed.
Nov 04 2022 07:53 AM
Nov 09 2022 05:16 AM
Nov 17 2022 03:00 AM
Nov 21 2022 12:20 AM - edited Nov 21 2022 12:21 AM
@GuillaumeStD - Can you please confirm above ask?
Nov 21 2022 01:36 AM
@Meghana-MSFT AAD app is part of Teams app here though. That's why I asked for help.
Nov 21 2022 04:04 AM
Nov 23 2022 09:28 PM
@GuillaumeStD - Can you please share above details.
May 31 2023 10:46 PM