MS Teams应用清单文件租户限制 [英] MS Teams app manifest file Tenant restriction

查看:56
本文介绍了MS Teams应用清单文件租户限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了bot应用程序并为其创建了清单文件.我将其添加到Microsoft团队中,并且工作正常.因此,如果我将该清单文件与其他租户帐户一起使用,那么该应用程序也将被添加并正常运行.我不希望这样.如果其他租户尝试添加清单,则该清单不起作用或无法添加.如何在清单文件中赋予租户限制?我还要附加清单文件.

I created the bot application and created the manifest file for it. I added it to the Microsoft teams and it is working fine. So if I use that manifest file with the other tenant account then also that app will be added and working. I don't want it to be like this. If the other tenant people tries to add the manifest it should not work or added. How to give tenant restriction in the manifest file? I am attaching my manifest file also.

{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0.0",
"id": "<id>",
"packageName": "com.example.myapp",
"developer": {
    "name": "AzS",
    "websiteUrl": "https://teams.com",
    "privacyUrl": "https://teams.com/privacy",
    "termsOfUseUrl": "https://teams.com/termsofuse"
},
"icons": {
    "color": "color.png",
    "outline": "outline.png"
},
"name": {
    "short": "test Bot",
    "full": "test App"
},
"description": {
    "short": "This is a  test bot",
    "full": " bot"
},
"accentColor": "#FFFFFF",
"bots": [
    {
        "botId": "<botid>",
        "scopes": [
            "team",
            "groupchat",
            "personal"
        ],
        "supportsFiles": true,
        "isNotificationOnly": false
    }
],
"permissions": [
    "identity",
    "messageTeamMembers"
],
"validDomains": []

}

推荐答案

除了上面注释中的问题之外,Microsoft还提供了中间件作为bot框架本身的一部分,以过滤特定的租户ID.看看 team/a>

Aside from my question in the comments above, Microsoft provide a middleware as part of the bot framework itself, to filter for specific tenant id(s). Have a look at teamsTenantFilteringMiddleware

(以上是针对Node的).感兴趣的是 C#版本也是如此.

(The above is for Node). For interest, here is the C# version as well.

这篇关于MS Teams应用清单文件租户限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆