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.
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.