Restricted access to Microsoft Teams data via EWS starts January 31, 2023
Microsoft will start restricting access via EWS to Microsoft Teams message data starting on September 30th, 2022. Fully supported access to Teams message data is available through the Microsoft Graph Teams Export API.