OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
998 stars 770 forks source link

RSC permission in manifest not allowing to install app to team #594

Closed murali-innerfit closed 9 months ago

murali-innerfit commented 1 year ago

I am getting below error when I try to install custom app which uses RSC. image My sample manifest { "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json", "version": "1.0.0", "manifestVersion": "1.12", "id": "7df0646c-d47a-4466-80bb-a07669f7e084", "packageName": "com.ms.app", "name": { "short": "RSC App", "full": "RSC App" }, "developer": { "name": "Team Inc", "websiteUrl": "https://test.me/", "privacyUrl": "https://www.notion.so/401a23507de449e68655e990504dae6e", "termsOfUseUrl": "https://www.notion.so/942cd2a95d884206a368dc1d4b8a0446" }, "description": { "short": "test", "full": "RSC" }, "icons": { "outline": "outline.png", "color": "color.png" }, "accentColor": "#004492", "bots": [ { "botId": "8828a357-461f-4e75-7e00-f66271a7907c", "scopes": ["personal","team","groupchat"], "isNotificationOnly": false, "supportsCalling": false, "supportsVideo": false, "supportsFiles": false } ], "permissions": [ "identity", "messageTeamMembers" ], "validDomains": [ "*.ngrok.io", "token.botframework.com", "login.microsoftonline.com" ], "webApplicationInfo": { "id": "8828a357-461f-4e75-7e00-f66271a7907c", "resource": "https://botid-8828a357-461f-4e75-7e00-f66271a7907c" }, "staticTabs": [ { "entityId": "conversations", "scopes": ["personal"] }, { "entityId": "about", "scopes": ["personal"] } ], "defaultGroupCapability": { "team": "bot", "groupchat": "bot", "meetings": "bot" }, "authorization": { "permissions": { "resourceSpecific": [ { "name": "Member.Read.Group", "type": "Application" }, { "name": "TeamMember.Read.Group", "type": "Application" } ] } } }

Prasad-MSFT commented 1 year ago

@murali-innerfit - According to the error message it seems like there is already an app installed which is using the same app id. Could you please verify that? Also is the same app getting uploaded without adding RSC permissions section in manifest?

murali-innerfit commented 1 year ago

I have uninstalled all apps in team but still getting same error. When I remove RSC from manifest am not getting this error.

Prasad-MSFT commented 1 year ago

@murali-innerfit - We tried uploading the app to team using the manifest schema provided and got below error. image

However, on removing RSC from manifest it gets uploaded successfully. We have raised a bug for this issue. We will inform you if there is any update from engineering team.

Prasad-MSFT commented 1 year ago

Hello @murali-innerfit - Apologies. We are following up with engineering team about this issue. We will update this thread once we hear from them. Thanks!

Update: This is as per design. Please refer here for more: https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent

To install your app on which you've enabled RSC permission in a team, chat, or user, follow these steps:

Ensure that you've configured consent settings for team, chat, or user.

Upload your custom app in Teams.

We are closing this issue for now, Please feel free to reopen it, if required.

microsoft-github-policy-service[bot] commented 9 months ago

Tell us about your experience!

Hi @murali-innerfit! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards, Teams Platform