Feb 28 2021 11:30 AM
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. Application Permissions
https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-beta&tabs=http
I am calling the
/users/< user-id >/chats
for a user-id different from mine (I am the admin) but it returs that the call is unauthorized
Can the Admin get Delegated Permissions through setting their org-wide policies appropriately?
Mar 01 2021 02:00 AM - edited Mar 01 2021 02:02 AM
Hi @christosjubile, This question was already answered here. So we are closing this issue.
Mar 01 2021 02:03 AM
Mar 01 2021 04:20 PM
Mar 02 2021 02:45 AM
@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
Mar 02 2021 02:48 AM - edited Mar 02 2021 02:49 AM
@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
Mar 04 2021 01:49 AM
@christosjubile Yes, you can get all messages using Teams Export API but, needs to have these permissions.