Jun 12 2023 12:51 AM
I have an unattended Dot NET Core app (v7.0) for our company and I need to use Graph SDK (or the REST API directly) to delete old Teams chat files and chat recordings for 1 to 1s and meetings but not for channels. (The built in Teams functionality is not suitable for what we need).
With Graph SDK then I'm able to enumerate each user and their OneDrive (for business) folders & files but I need to determine which folders to check. I know that the folders are normally "Recordings" & "Microsoft Teams Chat Files" but is this fixed? Some users in non-English speaking countries have told me that their folder name is the translated name.
How do I programmatically identify the names of the folders containing the user's recordings and chat files? Do I have to hard-code the folder name list to check? Also, can the folder name by defined by the administrator?
Jun 12 2023 03:56 AM - edited Jun 12 2023 04:10 AM
@chrisfellows - Using get chat message API we can get the callRecordingUrl as a message, since meeting recordings are stored in OneDrive we have to use driveitem-get-content.
As of now we don't have option to get meetings recordings directly with Teams API.
chatMessage https://learn.microsoft.com/en-us/graph/api/resources/chatmessage?view=graph-rest-1.0
evenMessageDetail https://learn.microsoft.com/en-us/graph/api/resources/eventmessagedetail?view=graph-rest-1.0
callRecordingEventMessageDetail https://learn.microsoft.com/en-us/graph/api/resources/callrecordingeventmessagedetail?view=graph-res...
There is no way programmatically to identify the names of the folders containing the user's recordings and chat files.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.
Jun 12 2023 04:15 AM - edited Jun 12 2023 04:20 AM
Am I correct that, for non-English users, the folder names will be the non-English translation of "Microsoft Teams Chat Files" and "Recordings"? Is the list available anywhere?
I can use Google Translate but may be the translation might sometimes be slightly different to the actual folder name.
Jun 14 2023 04:41 AM
@chrisfellows - There is no official documentation available anywhere.