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
Mar 01, 2021Microsoft
Hi christosjubile, This question was already answered here. So we are closing this issue.
- christosjubileMar 01, 2021Brass ContributorSorry my dear but the answer it was not sufficient enough but I had to assume it as a possible solution or a possible bug, the question remains: "Is it possible for an admin to permit a third party application to fetch all the users private chat messages?"
- Mamatha-MSFTMar 02, 2021Microsoft
christosjubile, 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.- christosjubileMar 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
- Subba_Reddi_TummuruMar 02, 2021Brass ContributorCheck this: https://docs.microsoft.com/en-us/microsoftteams/export-teams-content#how-to-access-teams-export-apis
Possible with application permissions and it is protected API.