question

JelenaPopovic-4226 avatar image
0 Votes"
JelenaPopovic-4226 asked AA-8558 commented

Microsoft Teams Beta API

We need to get all the Microsoft Teams chats for the specific user, but your documentation says:

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

How are we going to be able to use these APIs for the production applications or where is BETA supposed to become the official version so that these APIs are available?

Is there any way we could get:
- List of chats for a single user
- List of messages within one chat

microsoft-graph-teamworkmicrosoft-graph-applications
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShivamDhiman-1582 avatar image
0 Votes"
ShivamDhiman-1582 answered AA-8558 commented

Hi @JelenaPopovic-4226

"List of chats for a single user" is available from August 25, 2021 Release Log.

You can use this Graph API endpoint to List all chats of users

GET https://graph.microsoft.com/v1.0/users/{user-id}/chats

To List messages in a chat you can use these Graph API endpoint

GET /me/chats/{chat-id}/messages
GET /users/{user-id | user-principal-name}/chats/{chat-id}/messages
GET /chats/{chat-id}/messages

You can track new features/changes in Graph API Using the below Documentation.

What's New

Change Log

Hope this helps.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Where can I take the {chat-id} and {user-id}? I have the desktop version of Teams installed, what should I do to find out this data?

0 Votes 0 ·