7

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:

  1. Is it possible to list ALL Chats in the tenant? If yes, how?
  2. If it's currently not supported, is there a roadmap or schedule to support it?
  3. Seems the linked question was about impersonating an user and list his/her Chats. Is it still not supported?

Thanks!

Frank Chen
  • 178
  • 5
  • 1
    Thank you for reaching out to us We will investigate and if we require further information we will reach out. Best regards, Teams Platform – Subhasish Jul 08 '20 at 09:21
  • 1
    @Subhasish-MSFT To have things like production issues channel, build channels, etc, and let a bot monitor the channel conversations woulb be a huge step forward. We need a way to get this access programmatically. – Magnus Karlsson Jul 08 '20 at 20:41
  • @MagnusKarlsson - we are discussing this with engineering team. Will update you back. – Subhasish Jul 14 '20 at 07:03
  • There is no direct mechanism currently, but you could [create a subscription](https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-beta&tabs=http) and get all chat messages in the organization. – Subhasish Jul 15 '20 at 03:24

2 Answers2

0

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

Subhasish
  • 504
  • 2
  • 9
  • Oh and we already use the subscriptions for all messages, but that only covers the future messages. Listing all Chats would let us get all the past messages. So it would still be very helpful. – Frank Chen Jul 15 '20 at 10:03
  • Yes, You could get only future message with subscription. – Subhasish Jul 16 '20 at 07:23
0

This can be done with graph API currently in beta.

GET /teams/{id}/channels/{id}/messages

https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=http

Magnus Karlsson
  • 3,549
  • 3
  • 31
  • 57
  • 1
    Thanks, but that endpoint is for Channel messages, but we’re looking for Chats. Which I suppose is confirmed not able to list all in the tenant currently. – Frank Chen Jul 21 '20 at 13:27