![](/img/trans.png)
[英]SaaS Application with Azure AD authentication as MS Teams App with App Studio
[英]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 設置中填充。 我們嘗試如下。
"entities": [
{
"locale": "en-US",
"country": "US",
"platform": "Web",
"timezone": "Asia/Calcutta",
"type": "clientInfo"
}
]
"entities": [
{
"locale": "en-IN",
"country": "IN",
"platform": "Web",
"timezone": "Asia/Calcutta",
"type": "clientInfo"
}
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.