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

Anand P 1 Reputation point
2021-09-03T14:47:34.91+00:00

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://learn.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?   
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,414 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,979 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Prithvi-MSFT 271 Reputation points Microsoft Vendor
    2021-09-13T12:41:48.613+00:00

    Hi @Anand P ,
    We tried to chat level RSC and it worked for us. You can refer below document for more details.
    https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-messages-with-rsc. Can you confirm is developer preview is on when you are testing

    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 person found this answer helpful.

  2. Ramjot Singh 861 Reputation points Microsoft Employee
    2021-09-06T07:34:11.937+00:00

    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://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent to setup your app.