'Microsoft Teams: List all Chats regardless of users
We would like to achieve an eDiscovery integration that can track all past and new chat & channel messages.
But we observed that with Delegated Permissions, the app can only list Chats that the user (admin or not) is a member of; while with Application Permissions the list Chats endpoint is not supported.
Searching through the site we see this question: How to retrieve another user's MS Teams chats with the Microsoft Graph API?
Which indicates it's not possible. But his question was a bit different than ours and it was about a year ago. So I'd like to confirm:
- Is it possible to list ALL Chats in the tenant? If yes, how?
- If it's currently not supported, is there a roadmap or schedule to support it?
- Seems the linked question was about impersonating an user and list his/her Chats. Is it still not supported?
Thanks!
Solution 1:[1]
It is currently in our backlog but there is no ETA on this. You could create a subscription and get all chat messages in the organization
Solution 2:[2]
This can be done with graph API currently in beta.
GET /teams/{id}/channels/{id}/messages
https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=http
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Subhasish |
Solution 2 | Magnus Karlsson |