Search code examples
microsoft-teamsmicrosoft-graph-teamsteams-toolkit

MS Teams: Getting Error "Please check the values of authorisation.permissions.resourceSpecific."


We have created MS Teams application using fluent UI with Tab capability. We are performing few action like sending adaptive card to person/channel and creating tab with website link.

Application is started showing error while we click on the ADD while running in local environment.

After clicking on Add it call API https://teams.microsoft.com/api/mt/part/emea-03/beta/users/apps/definitions/appPackage which is failing with error code 400 with below response.

{"errorCode":"InvalidResourceSpecificPermission"}

While checking permissions we have following entries in the manifest.json

"authorization": {
    "permissions": {
        "resourceSpecific": [
            { "type": "Application", "name": "People.Read.All" },
            { "type": "Application", "name": "Chat.Create" },
            { "type": "Application", "name": "TeamsTab.ReadWrite.All" }
        ]
    }
},

I checked with documentation and found this permissions are correct. Kindly help us to resolve this issue as its blocking our development.


Solution

  • The permissions you've listed there are Graph permissions (e.g. see here which lists TeamsTab.ReadWrite.All). As per the schema, you are trying to use these in the resourceSpecific list, which requires Resource-specific consent permissions instead. See here for the options: https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent