I recently answered a post on the TechCommunity ( Link here ) about a user asking about the existence and non-existence of the so called “Microsoft Teams Chat Files” folder in Onedrive!
It got me thinking that details of sharing files in a private chat in Microsoft Teams can be somewhat confusing for many users, and official documentation doesn’t give that much clarity either! If you end up searching for this online this link is probably what you will end up finding: File storage in Teams
Some background info:
Teams utilize a lot of different services within Office 365 except from its own services in order to make up a “all -in-one work tool for end users! When it comes to files, Teams uses a SharePoint library for a Teams common files and for files uploaded in 1:1 or group chats, Onedrive is used!
OneDrive is actually like a service in another service, because it actually lives in SharePoint, but that’s another nighttime story!
In the world of Office 365, Onedrive is the service for storing your personal files. Since Teams is a cloud service and there’s no specific data storage to hold private chat files in Teams, it’s quite natural that Onedrive is used here by sharing the files to chat participants! The pros about this is you hopefully already use Onedrive for personal file storage and will easily find your files to share. You will also have control over the files you share in Teams and the ability to co-author, have versioning and other great features that’s part of OneDrive!
Not as great, is that this requires that the users have a SharePoint license assigned! Federated chats aren’t supported at the time of this writing! Also, if the user never used OneDrive before, they will end up with files in OneDrive and still have their local copies on their device! Not knowing how this works, it can cause some confusion on what file to work with, for example!
“Keep in mind is that all participants need the SharePoint license enabled in order to do file sharing in 1:1 and group chats!” This also relates to use a Teams “files” tab to access files in a Team”
How it works..
To share a file in a chat either click the attachment button in the chat window or the navigate to the files tab in the upper left corner:
Both lets you upload a file from your local computer “upload from my computer” or pic a file directly from your OneDrive!
Now what happens next?
If you upload a file from your Onedrive, this file gets automatically shared with edit permissions to the people in the chat!
If you check the permissions of that file in Onedrive, you see it’s shared individually with direct access to the participants in the chat:
If you choose the option to upload a file from desktop, Teams will make a copy of the file, upload it to Onedrive then share it as described earlier!
What also happens is that while uploading the file to your OneDrive it creates a folder called “Microsoft Teams chat files” and puts the file there!
This differentiates from sharing a Onedrive file directly, hence it’s not moving any files to that folder! Therefore, some users don’t see this folder in their Onedrive, and some do! It’s just a matter of if they have shared a file in a Teams chat by uploading a local file, or not!
Also keep in mind that if people are added or removed in a group chat you need to re-upload that file or add / remove permissions to those persons directly from OneDrive
SO, this is how it works! There are room for improvements like federation support and automatic changes of file permissions when people are added / removed!
If you have any feedback let me know!