Installing Teams App to a chat ends with ResourceSpecificPermissionsMismatch error

Jan J 11 Reputation points
2022-03-03T17:21:20.443+00:00

Trying to install an organization-specific Teams app on a meeting through Graph API (POST /chats/<chatId>/installedApps) results in BadRequest error with code ResourceSpecificPermissionsMismatch.

The access token used in the request (retrieved through on-behalf-of flow) has TeamsAppInstallation.ReadWriteSelfForChat scope (among others). Teams app has ChatSettings.Read.Chat RSC permission configured in its manifest and is associated with the same AzureAD app (through webApplicationInfo.id) that is used in the OBO flow to get the token to perform the request ending with the mentioned error. However, if I remove the RSC permissions from the Teams app, the App installation through the API succeeds just fine.

How can I preserve RSC permission for the app and still be able to install Teams app through the API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,476 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Jan J 11 Reputation points
    2022-08-23T11:25:09.32+00:00

    Ok so now I see that installing Teams app with RSC is not supported yet: https://learn.microsoft.com/en-us/graph/api/chat-post-installedapps?view=graph-rest-1.0&tabs=http

    Any idea on whether it will be supported, and when the support can be expected?

    1 person found this answer helpful.