Skip to content

Sideloading bot in group chat results in error WebApplicationInfoIdOfSideloadedAppMustBeInTheSameTenantAsUser #2239

@frank-msft

Description

@frank-msft

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

What package version of the SDK are you using.

botbuilder-core==4.17.0
botbuilder-dialogs==4.17.0
botbuilder-integration-aiohttp==4.17.0

Describe the bug

When sideloading bot in group chat, I'm seeing error {"errorCode":"WebApplicationInfoIdOfSideloadedAppMustBeInTheSameTenantAsUser"} for request URL: https://teams.microsoft.com/api/apps/part/msft/beta/chats/redacted/apps/definitions/appPackage

webApplicationInfo was added to the manifest.json due to error:

{
    "errorCode": "UnableToParseTeamsAppManifest",
    "message": "RSC permissions require webApplicationInfo.appId to be configured in the manifest. The manifest includes resource‑specific consent permissions, but no appId is defined under webApplicationInfo."
}

After adding webApplicationInfo, the bot works fine in personal chat, but not group chat.

Expected behavior

Bot is added to the group chat successfully. These errors started in recent weeks.

Screenshots

The error is displayed as "Something went wrong" in Teams.

Image

Additional context

  • Bot uses user assigned managed identity
  • manifest.json contains RSC permissions
  "authorization": {
    "permissions": {
      "resourceSpecific": [
        {
          "name": "ChatMessage.Send.Chat",
          "type": "Application"
        },
        {
          "name": "ChatMessage.Read.Chat",
          "type": "Application"
        }
      ]
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions