Reputation: 11
Hi guys I have been trying to enable my bot on default, the bot needs to be installed directly to the Microsoft team's channel. Below is the schema of my app manifest in teams
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
"manifestVersion": "1.11",
"version": "1.6",
"id": "xxxx-xxxxxx-xxxxxx-xxxxx",
"packageName": "com.xxxxx.microsoftteams.jira",
"developer": {
"name": "xxxxxxx",
"websiteUrl": "https://www.xxxxx.com",
"privacyUrl": "https://www.xxxxx.com/privacy",
"termsOfUseUrl": "https://www.xxxxx.com/license",
"mpnId": "xxxxx"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "xxxx",
"full": "xxxx"
},
"description": {
"short": "xxxxx",
"full": "xxxxxx"
},
"accentColor": "#FFFFFF",
"configurableTabs": [],
"staticTabs": [
{
"entityId": "conversations",
"scopes": [
"personal"
]
},
{
"entityId": "about",
"scopes": [
"personal"
]
},
{
"entityId": "xx",
"name": "xx",
"scopes": [
"personal"
]
}
],
"bots": [
{
"botId": "xxx-xxxx-xxxx-xxxx",
"scopes": [
"personal",
"team",
"groupchat"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"composeExtensions": [
{
"botId": "xxx-xxxx-xxxx-xxxx",
"canUpdateConfiguration": false,
"commands": [
{
"id": "search",
"type": "query",
"title": "Search",
"description": "Search for issues in xxx",
"initialRun": true,
"fetchTask": false,
"context": [
"commandBox",
"compose"
],
"parameters": [
{
"name": "search",
"title": "Search",
"description": "Search",
"inputType": "text"
}
]
}
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"defaultInstallScope": "team",
"defaultGroupCapability": {
"meetings": "bot",
"team": "bot",
"groupchat": "bot"
},
"validDomains": [
"xxx",
],
"webApplicationInfo": {
"id": "xxx-xxxx-xxxx",
"resource": "http://"
}
}
So if you look carefully you will find out that I have added defaultInstallScope
to route the installation to teams and defaultGroupCapability
has teams specifying that it should install the bot to the teams. But it's not working. Please does anybody know anything about this?
Upvotes: 0
Views: 529
Reputation: 369
defaultGroupCapability provides the default capability that will be added to the team, groupchat, or meeting. Select a tab, bot, or connector as the default capability for your app, but you must ensure that you have provided the selected capability in your app definition .Could you just check it once? or share the error log?
Ref Doc:-Configure default install options for your Microsoft Teams app
Upvotes: 0