繁体   English   中英

Azure AD 或 Teams Provisioning 中的哪些字段是传递到 Teams App 消息传递端点的 JSON 中entities.country/locale 信息的来源?

[英]What fields in Azure AD or Teams Provisioning are the source of entities.country/locale info in the JSON delivered to Teams App messaging endpoint?

Microsoft Teams <-> Azure AD Bot 注册 w/ Teams 频道 <-> 使用 Bot Framework 的自定义 Teams 应用程序/机器人消息传递端点。

我们有一个使用 Microsoft Bot Framework 构建的自定义团队应用程序。 我们希望将 Teams 提供的一些地理属性用于从 Teams 传递到我们的聊天机器人的传入消息中的消息传递端点,特别是 entity.country 和 entity.locale(这些在 Microsoft Schema https://docs 中进行了描述。 microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bot-conversations/bots-conversations#full-inbound-schema-example并摘录如下)

在此处输入图像描述

我们认为这些属性来自 Azure AD 用户配置文件,但想知道是哪个字段。 如果不是来自 Azure AD 数据,哪些数据字段或配置。

我们有一个客户,其中国家(CO 和 C)被正确设置为美国以外的国家,但是 Teams Bot Conversation JSON 在entities.country 中将美国报告为国家,而不是在 Azure AD 中配置的国家。 (Teams 租户似乎托管在西欧,因此在 Teams 许可配置期间,某些国家/地区属性可能已超出 Azure AD 中的值。)

entity.country 和 entity.locale 从 Teams 设置中填充。 我们尝试如下。

  1. 当 APP 语言为英语(美国)时,我们在 bot 端点获得了以下有效负载。

在此处输入图像描述

"entities": [
        {
            "locale": "en-US",
            "country": "US",
            "platform": "Web",
            "timezone": "Asia/Calcutta",
            "type": "clientInfo"
        }
    ]
  1. 当 APP 语言为英语(印度)时,我们在 bot 端点获得了以下有效负载。

在此处输入图像描述

"entities": [
        {
            "locale": "en-IN",
            "country": "IN",
            "platform": "Web",
            "timezone": "Asia/Calcutta",
            "type": "clientInfo"
        }
    ]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM