Forum Discussion
ChannelMessage permission is not working in manifest version 1.12.
- Jul 15, 2022
Lakshmi_145 - Please refer this sample which seems to be working fine and has been updated to v1.11 recently. Microsoft-Teams-Samples/samples/bot-receive-channel-messages-withRSC/nodejs/appPackage at main · OfficeDev/Microsoft-Teams-Samples (github.com)
FYI ,This feature is currently available in Public Developer Preview only.
Please check this in Public Developer Preview
Reference doc:
https://docs.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-intro
Also refer: Receive all channel messages with RSC - Teams | Microsoft Docs
We have tried the below Config by changing Version to 1.12 and adding the permission for Channel Message.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json",
"manifestVersion": "1.12",
"version": "[MS_TEAMS_APP_BUILD_NUMBER]",
"id": "[MS_TEAMS_APP_ID]",
"developer": {
"name": "[NAME]",
"websiteUrl": "[URL]",
"privacyUrl": "[PRIVACY_URL]",
"termsOfUseUrl": "[TOS_URL]"
},
"name": {
"short": "[MS_TEAMS_APP_NAME]"
},
"description": {
"short": "Teams",
"full": "[MS_TEAMS_APP_LONG_DESC]"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "[MS_BOT_ID]",
"scopes": ["groupchat"],
"isNotificationOnly": false
}
],
"webApplicationInfo": {
"id": "[MS_BOT_ID]",
"resource": "https://RscPermission"
},
"configurableTabs": [
{
"configurationUrl": "[CLIENT_BASE_URL]/config",
"scopes": ["groupchat"],
"context": [
"meetingSidePanel",
"meetingStage",
"meetingChatTab",
"meetingDetailsTab"
]
}
],
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}
}
}
Lakshmi_145 - Could you please share the sample repo which you are referring to?
- Lakshmi_145Jul 14, 2022Iron Contributor
We have configured the Team manifest file with with the ChannelMessage.Read.Group permission specified in the authorization property.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json",
"manifestVersion": "1.12",
"version": "[MS_TEAMS_APP_BUILD_NUMBER]",
"id": "[MS_TEAMS_APP_ID]",
"developer": {
"name": "[NAME]",
"websiteUrl": "[URL]",
"privacyUrl": "[PRIVACY_URL]",
"termsOfUseUrl": "[TOS_URL]"
},
"name": {
"short": "[MS_TEAMS_APP_NAME]"
},
"description": {
"short": "Teams",
"full": "[MS_TEAMS_APP_LONG_DESC]"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "[MS_BOT_ID]",
"scopes": ["groupchat"],
"isNotificationOnly": false
}
],
"webApplicationInfo": {
"id": "[MS_BOT_ID]",
"resource": "https://RscPermission"
},
"configurableTabs": [
{
"configurationUrl": "[CLIENT_BASE_URL]/config",
"scopes": ["groupchat"],
"context": [
"meetingSidePanel",
"meetingStage",
"meetingChatTab",
"meetingDetailsTab"
]
}
],
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}
}
}- Updated the team manifest file file from Teams
- Created a new group in team with updated app. Also tried by updating the app in existing team group
Still events are not triggered while sending messages
- Prasad_Das-MSFTJul 15, 2022
Microsoft
Lakshmi_145 - Please refer this sample which seems to be working fine and has been updated to v1.11 recently. Microsoft-Teams-Samples/samples/bot-receive-channel-messages-withRSC/nodejs/appPackage at main · OfficeDev/Microsoft-Teams-Samples (github.com)
FYI ,This feature is currently available in Public Developer Preview only.
Please check this in Public Developer Preview
Reference doc:
https://docs.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-intro
Also refer: Receive all channel messages with RSC - Teams | Microsoft Docs