Forum Discussion
Remove "Add to a meeting" from Bot app install scope?
I would like to prevent users from being able to install our Bot application into a "meeting". See the attached image. I have added "team" as the "defaultInstallScope" and my bot's scopes are defined as:
"scopes": ["personal", "team", "groupChat"]
Is there a way to remove "Add to a meeting" as an option here?
- Prasad_Das-MSFTMicrosoft
In your case, you have set the
defaultInstallScope
to "team" and your bot's scopes are defined as ["personal", "team", "groupChat"]. To remove the "Add to a meeting" option, you can set thedefaultGroupCapability
for the "meetings" scope to a capability other than "bot"."defaultGroupCapability": { "team": "bot", "groupchat": "bot", "meetings": "tab" }
In the above example, the default capability for the "meetings" scope is set to "tab". This means that when users try to install your app in a meeting, they will only see the option to add a tab, and the "Add to a meeting" option will be removed.
Ref: Manifest schema reference - Teams | Microsoft Learn
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- smosche635Copper Contributor
Prasad_Das-MSFT Thank you for the reply. I did try your suggestion but I am still seeing "Add to a meeting" in the dialog box when I "Upload a custom app" to Microsoft Teams for testing.
I have also tried to use "connector" in place of "tab" for the meetings value in `defaultGroupCapability` but I see the same options in the "add" menu.Here is the relevant portion of my manifest:
"bots": [
{
"botId": "MY_BOT_ID",
"scopes": [
"personal",
"team",
"groupChat"
],
...
}
],
"defaultGroupCapability": {
"team": "bot",
"groupchat": "bot",
"meetings": "tab"
},
"defaultInstallScope": "team"I do see that if, for example, I remove "personal" from the scopes array, then "Add for me" no longer appears in the install list. So my manifest changes are able to affect the list. I do still want the "personal" scope, but I would prefer to not have "Add to a meeting" as one of the allowed install options.
Thanks for your help.- Prasad_Das-MSFTMicrosoft
smosche635 - Could you please provide the app manifest zip which you used, so that we can investigate from our end?