Forum Discussion
christosjubile
Feb 28, 2021Brass Contributor
Microsoft Teams, Fetch ALL chat messages with MS Graph API
I need to fetch all of the users' chats (even private ones) since the Admin had already given us their consent. How can I do that using Graph API? We are a bit confused between the Delegated vs. Ap...
Mamatha-MSFT
Microsoft
Mar 02, 2021christosjubile, for that API only delegated permissions can be enabled and it doesn't support application permissions. Hence you cannot get other user's chat
Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice here.
christosjubile
Mar 02, 2021Brass Contributor
Mamatha-MSFThow about the Subba_Reddi_Tummuru answer? is it valid to get the message from export protected API which is proposed? https://docs.microsoft.com/en-us/microsoftteams/export-teams-content#how-to-access-teams-export-apis
- Mamatha-MSFTMar 04, 2021
Microsoft
christosjubile Yes, you can get all messages using Teams Export API but, needs to have these permissions.