question

AnandP-8228 avatar image
0 Votes"
AnandP-8228 asked JimmyYang-MSFT commented

What is the status and roadmap of 'for Receiving all Channel Messages with RSC using Teams Bot API?

Objective: Subscribe a listener application to receive all ‘chat message’ events in the team/ channel for which the subscription has been created (or renewed).
We would like to request team owners to consent for a bot to receive user messages across standard channels in a team without being @mentioned, using resource-specific consent (RSC) permissions model.
Reference:
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-messages-with-rsc

Challenge we are facing:
The documentation suggests that this feature is in public developer preview only. However even this seems to have been withdrawn and it’s not clear whether this option is recommended by MS Teams and whether it works. We have not been able to get this option working, as it throws a schema validation error because of the absence of applicationPermissions key.

From devPreview, it appears that the required key of applicationPermissions has recently been removed:
https://raw.githubusercontent.com/OfficeDev/microsoft-teams-app-schema/preview/DevPreview/MicrosoftTeams.schema.json

Our Teams Bot App needs to read ALL Team chat messages for Team channels that have installed the app (& provided consent), analyze the content and accordingly respond (privately) to the message sender.

 What is the roadmap for 'Receiving all Channel Messages with RSC' using the Teams Bot API? 
office-teams-windows-itprooffice-teams-app-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AnandP-8228

Welcome to Q&A forum!

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your issue is related to Teams API, which is not in our support scope.

I also checked the roadmap and the product update information, but we did not find any valuable information about it.

0 Votes 0 ·
RamjotSingh avatar image
0 Votes"
RamjotSingh answered AnandP-8228 commented

Resource Specific Consent is very much supported. Infact support for RSC in teams is GA, only chat level RSC is in developer preview. Please follow https://docs.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent to setup your app.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Ramjot,
Many thanks for your response. Our understanding from the following references is that RSC is available but chat level RSC has been revoked or is being re-implemented under dev preview:

0 Votes 0 ·
PrithviKamble-MSFT-9239 avatar image
1 Vote"
PrithviKamble-MSFT-9239 answered JimmyYang-MSFT commented

Hi @AnandP-8228 ,
We tried to chat level RSC and it worked for us. You can refer below document for more details.
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-messages-with-rsc

We tried with below sample code and manifest. You can refer it
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-receive-channel-messages-withRSC/csharp

While uploading the above manifest there was no error.

Also make sure you have added a valid redirect url in your azure app registration with access and id tokens checked.

Thanks

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AnandP-8228

Just checking in to see if above information was helpful. If you have any further updates on this issue, please feel free to post back.

0 Votes 0 ·