microsoft-teams

How to retrieve another user's MS Teams chats with the Microsoft Graph API?

一笑奈何 提交于 2020-07-19 04:11:26
问题 As a global administrator I'm attempting to retrieve the list of MS Teams chats for a different user, however no matter which id I pass to GET /beta/users/{id}/chats the response is always the list of chats for the authenticated user. How do you get the list of chats for a different user? The API documentation (https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-beta&tabs=http) suggests that I should be able to call GET /beta/me/chats to retrieve the list of my chats and GET

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

MS Team[BETA] API for Message object property type for reaction

孤者浪人 提交于 2020-07-10 08:31:06
问题 I am trying to create the schema for Message API As per the documentation, the sample response properties for reaction provided are below Documentation sample response "reactions": [ { "reactionType": "like", "createdDateTime": "2019-01-21T19:55:51.893Z", "user": { "application": null, "device": null, "conversation": null, "user": { "id": "e1ecb745-c10f-40af-a9d4-cab946c80ac7", "displayName": null, "userIdentityType": "aadUser" } } } ] From the documentation user is Identity type identity set

Microsoft Teams Authentication : Unable to retrieve token in teams bot ( V4 SDK)

£可爱£侵袭症+ 提交于 2020-07-09 07:57:06
问题 I have a Microsoft Teams bot and I am trying to authenticate the user using AAD (v2 endpoint) . The bot uses V4 SDK and OauthPrompt .I am able to log in but unable to get the token. I am using OAuth Card. The card is being rendered inside Teams. When the sign in button is clicked it goes to the Microsoft login page. After the user logins, the bot stops responding and hence I have no way to get the token. The samples I am trying out are : https://github.com/microsoft/BotBuilder-Samples/tree

“onlinemeeting cannot be null” error when creating new meeting with beta API

♀尐吖头ヾ 提交于 2020-07-09 06:01:43
问题 I'm trying to create a new meeting as per the documentation: POST https://graph.microsoft.com/beta/app/onlineMeetings (bearer token included - works fine with other operations) { "meetingType": "meetNow", "participants": { "organizer": { "identity": { "user": { "id": "54f84a95-91c1-49f1-8d81-4632342e2c1e" } } } }, "startTime": "2018-10-10T14:46:02Z", "subject": "my meeting" } I get this error: { "error": { "code": "UnknownError", "message": "{\"message\":\"onlinemeeting cannot be null.\"}",

How to fetch user access token after authentication in Microsoft Teams Bot?

你离开我真会死。 提交于 2020-07-07 12:26:41
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

How to fetch user access token after authentication in Microsoft Teams Bot?

﹥>﹥吖頭↗ 提交于 2020-07-07 12:25:15
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

How to fetch user access token after authentication in Microsoft Teams Bot?

天涯浪子 提交于 2020-07-07 12:24:49
问题 I am developing my first bot from Microsoft Teams. I want the user to input commands in the bot, the bot should send requests to my external web sever and display the results as adaptive cards. I was able to authenticate the bot with my external server. The bot shows the user access token after authentication. Perfect! How can I get the user's access token in my bot code or web server to process the incoming request from the bot. Here's what my bot code looks like. this.onMessage(async

Getting Teams Calls returns Application not registered in our store

我怕爱的太早我们不能终老 提交于 2020-07-05 05:09:12
问题 I'm struggling with Microsft Graph. I want to fetch Teams Calls from the graph API to throw them against our ticket software. Sounds easy at first. And I think it is but I don't get why it won't work. Edit: Just a heads up. I ended up using the Microsoft Graph subscription model. To be clear, I don't want to create a teams app, I just want to fetch Teams Calls/Meetings. This is my code (removed ID's for obvious reasons): class Program { // (Company IDs) static string tenantId = "xxxxxxxx-xxxx

how to increase the size of the adaptive card?

人走茶凉 提交于 2020-07-03 08:55:32
问题 I have used an adaptive card to show data on a table format. There are four columns showed on the adaptive card. On Bot framework emulator it shows proper data as shown image. On bot framework emulator it shows proper column data. But when it deployed on teams, Its last column data get truncated, How to solve it? how to increase the size of the adaptive card? 回答1: The width of Adaptive Cards in the Teams client is determined by the Teams client itself based on the current viewing area width -