MS Teams Visibility Context
Hi there,
I am developing a Microsoft Teams bot application and am encountering an issue where the bot’s visibility and functionality are not being restricted as specified in the app manifest. Here are the details of the problem.
Issue Description:
Our bot is intended to be used only with the bot itself once sideloaded.We have set the bot’s scope in the manifest to “personal” only.Despite this setting, the bot remains visible and functional in 1:1 chats, group chats and team channels.
Steps Taken:
Updated the manifest.json file to include only “personal” in the bot’s scopes.
Expected Behaviour:
The bot should only be visible and functional in direct interactions with the bot.Users should not be able to add or interact with the bot in 1:1 chats, group chats and team channels.
Questions:
Are there additional steps or configurations required to restrict a bot’s visibility and functionality to direct bot contexts only?Is there a known issue with the manifest scope settings not being enforced for bots?
Here is the manifest:
{
“$schema”:”https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json”,
“manifestVersion”:”1.16″,
“version”:”1.2.0″,
“id”:”{{.AppID}}”,
“localizationInfo”:{
“defaultLanguageTag”:”en-gb”,
“additionalLanguages”:[
]
},
“developer”:{
“name”:”REDACTED”,
“websiteUrl”:”REDACTED”,
“privacyUrl”:”REDACTED”,
“termsOfUseUrl”:”REDACTED”
},
“icons”:{
“color”:”color.png”,
“outline”:”outline.png”
},
“name”:{
“short”:”{{.AppName}}”,
“full”:”{{.AppName}}”
},
“description”:{
“short”:”REDACTED”,
“full”:”REDACTED”
},
“accentColor”:”#00bd00″,
“configurableTabs”:[
],
“staticTabs”:[
],
“bots”:[
{
“botId”:”{{.AppID}}”,
“scopes”:[
“personal”
],
“needsChannelSelector”:false,
“isNotificationOnly”:false,
“supportsFiles”:false,
“supportsCalling”:false,
“supportsVideo”:false,
“commandLists”:[
{
“scopes”:[
“personal”
],
“commands”:[
]
}
]
}
],
“composeExtensions”:[
{
“botId”:”{{.AppID}}”,
“commands”:[
{
“id”:”REDACTED”,
“context”:[
“commandBox”,
“compose”,
“message”
],
“description”:”REDACTED”,
“title”:”REDACTED”,
“type”:”action”,
“fetchTask”:true
}
]
}
],
“permissions”:[
“identity”,
“messageTeamMembers”
],
“devicePermissions”:[
],
“validDomains”:[
“REDACTED”,
“REDACTED”
],
“showLoadingIndicator”:false,
“isFullScreen”:false,
“activities”:{
},
“defaultInstallScope”:”personal”
}
Thanks.
Hi there, I am developing a Microsoft Teams bot application and am encountering an issue where the bot’s visibility and functionality are not being restricted as specified in the app manifest. Here are the details of the problem. Issue Description:Our bot is intended to be used only with the bot itself once sideloaded.We have set the bot’s scope in the manifest to “personal” only.Despite this setting, the bot remains visible and functional in 1:1 chats, group chats and team channels.Steps Taken:Updated the manifest.json file to include only “personal” in the bot’s scopes.Expected Behaviour:The bot should only be visible and functional in direct interactions with the bot.Users should not be able to add or interact with the bot in 1:1 chats, group chats and team channels.Questions:Are there additional steps or configurations required to restrict a bot’s visibility and functionality to direct bot contexts only?Is there a known issue with the manifest scope settings not being enforced for bots?Here is the manifest: {
“$schema”:”https://developer.microsoft.com/en-us/json-schemas/teams/v1.16/MicrosoftTeams.schema.json”,
“manifestVersion”:”1.16″,
“version”:”1.2.0″,
“id”:”{{.AppID}}”,
“localizationInfo”:{
“defaultLanguageTag”:”en-gb”,
“additionalLanguages”:[
]
},
“developer”:{
“name”:”REDACTED”,
“websiteUrl”:”REDACTED”,
“privacyUrl”:”REDACTED”,
“termsOfUseUrl”:”REDACTED”
},
“icons”:{
“color”:”color.png”,
“outline”:”outline.png”
},
“name”:{
“short”:”{{.AppName}}”,
“full”:”{{.AppName}}”
},
“description”:{
“short”:”REDACTED”,
“full”:”REDACTED”
},
“accentColor”:”#00bd00″,
“configurableTabs”:[
],
“staticTabs”:[
],
“bots”:[
{
“botId”:”{{.AppID}}”,
“scopes”:[
“personal”
],
“needsChannelSelector”:false,
“isNotificationOnly”:false,
“supportsFiles”:false,
“supportsCalling”:false,
“supportsVideo”:false,
“commandLists”:[
{
“scopes”:[
“personal”
],
“commands”:[
]
}
]
}
],
“composeExtensions”:[
{
“botId”:”{{.AppID}}”,
“commands”:[
{
“id”:”REDACTED”,
“context”:[
“commandBox”,
“compose”,
“message”
],
“description”:”REDACTED”,
“title”:”REDACTED”,
“type”:”action”,
“fetchTask”:true
}
]
}
],
“permissions”:[
“identity”,
“messageTeamMembers”
],
“devicePermissions”:[
],
“validDomains”:[
“REDACTED”,
“REDACTED”
],
“showLoadingIndicator”:false,
“isFullScreen”:false,
“activities”:{
},
“defaultInstallScope”:”personal”
} Thanks. Read More