SOLVED

ChannelMessage permission is not working in manifest version 1.12.

Occasional Contributor

In manifest version 1.11 , added the permission for Channel message in webApplicationInfo

"webApplicationInfo": {
"id": "appID",
"resource": "https://AnyString",
"applicationPermissions": [
"ChannelMessage.Read.Group"
]
}

Once after switching to version 1.12 , we have changed the config to

"webApplicationInfo": {
"id": "appID",
"resource": "https://AnyString"
},
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}

but events are not triggering anymore

5 Replies

@Aiswarya_Lakshmy - Could you please provide the sample you are referring to along with the repro steps so that we can try out once from our end?

@Prasad_Das-MSFT 

 

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"
}
]
}
}
}

 

@Aiswarya_Lakshmy - Could you please share the sample repo which you are referring to?

@Prasad_Das-MSFT 

 

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

best response confirmed by Aiswarya_Lakshmy (Occasional Contributor)
Solution

@Aiswarya_Lakshmy - 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 · Off...

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-int...


Also refer: Receive all channel messages with RSC - Teams | Microsoft Docs