Looking to export chats within Microsoft Teams? Exporting chats from Teams is an oft-requested feature, but at the moment there’s no out of the box functionality available for end users.
If you’re an end user
If you don’t have admin rights, at present your options are limited for exporting chats from Teams especially while using a work Office 365 account.
If you’re using a personal Microsoft account with Teams, you may be able to export your messages following the steps listed here.
For work accounts, one option is to setup a workflow using Microsoft Flow to call the Microsoft Graph API and convert individual chats to HTML or a PDF file.
An alternative is to call the Graph API endpoints to retrieve messages and conversations yourself as part of your own script/program, although that has a higher degree of complexity when compared to using a tool such as Microsoft Flow. These endpoints are also in beta.
You could also open the Microsoft Teams website in your browser (Chrome or Edge) and use a full page screenshot extension to capture a conversation. Note however that you’ll need to manually scroll back through the chat to ensure that the full history is shown.
If you’re an admin
The options are still quite limited, but you can try and use the eDiscovery tools available in Office 365 to retrieve messages from channels.