Receive all channel messages with RSC


This feature is currently available in public developer preview only.

The resource-specific consent (RSC) permissions model, originally developed for Teams Graph APIs, is now extended to bot scenarios.

Currently, bots can only receive user channel messages when they are @mentioned. Using RSC, you can now request team owners to consent for a bot to receive user messages across standard channels in a team without being @mentioned. This capability is enabled by specifying the ChannelMessage.Read.Group permission in the manifest of an RSC enabled Teams app. After configuration, team owners can grant consent during the app installation process.

For more information about enabling RSC for your app, see resource-specific consent in Teams.

Enable bots to receive all channel messages

The ChannelMessage.Read.Group RSC permission is extended to bots. With user consent, this permission allows graph applications to get all messages in a conversation and bots to receive all channel messages without being @mentioned.

Update app manifest

For your bot to receive all channel messages, RSC must be configured in the Teams app manifest with the ChannelMessage.Read.Group permission specified in the webApplicationInfo property.

Update app manifest

The following is an example of the webApplicationInfo object:

  • id: Your Azure Active Directory (AAD) app ID. This can be the same as your bot ID.
  • resource: Any string. This field has no operation in RSC, but must be added and have a value to avoid error response.
  • applicationPermissions: RSC permissions for your app with ChannelMessage.Read.Group must be specified. For more information, see resource-specific permissions.

The following code provides an example of the app manifest:

"webApplicationInfo": {
"resource": "https://AnyString",
"applicationPermissions": [

Sideload in a team to test

To sideload in a team to test, whether all channel messages in a team with RSC are received without being @mentioned:

  1. Select or create a team.

  2. Select the ellipses ●●● from the left pane. The drop-down menu appears.

  3. Select Manage team from the drop-down menu. The details appear.

    Managing apps in team

  4. Select Apps. Multiple apps appear.

  5. Select Upload a custom app from the lower right corner.

    Uploading custom app

  6. Select the app package from the Open dialog box.

  7. Select Open.

    Selecting app package

  8. Select Add from the app details pop-up, to add the bot to your selected team.

    Adding the bot

  9. Select a channel and enter a message in the channel for your bot.

    The bot receives the message without being @mentioned.

    Bot receives message

See also