export messages

Glenn Maxwell 14,311 Reputation points
2024-10-20T21:29:07.15+00:00

Hi All,

I have a Teams channel, and I want to export all the channel messages to a text or CSV file. This is a one-time activity. I have created an Azure service principal (Azure App registration) and assigned Microsoft Graph delegated API permissions (ChannelMessage.Read.All). I logged into the Microsoft developer portal and tried to export the messages, but I am stuck at this point. Please guide me? 111111-2222-3333-4444-5678956789 is my unified group id.

i have logged to https://developer.microsoft.com/en-us/graph/graph-explorer and tried the below

https://graph.microsoft.com/v1.0/teams/111111-2222-3333-4444-5678956789/allChannels

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other

1 answer

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.