azure-bot-service

How to get the tenant name when integrating with Microsoft Teams

半腔热情 提交于 2020-07-10 10:27:10
问题 I have created a Microsoft Teams bot that can create/update conversations and receives all kinds of events to an endpoint (user joined team, ...). All I see in the events is a tenant id. For teams, i get an id and sometimes a name which is great. to create/update conversations I use this flow: Get a token from https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token POST to a channel: ${serviceUrl}v3/conversations/${conversationId}/activities My question is, how can I get the name