SOLVED

Block File Sharing in Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1155821%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155821%22%20slang%3D%22en-US%22%3E%3CP%3ENo%2C%20I%20don't%20think%20that%20is%20possible.%20If%20you%20disable%20OneDrive%20for%20users%20Teams%20will%20use%20OneDrive%20for%20file%20sharing%20in%20chats%20anyway.%20If%20you%20disable%20Sharepoint%20for%20users%2C%20Teams%20will%20use%20Sharepoint%20anyway%20for%20sharing%20in%20Channels.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20disable%20Team%20creation%20for%20users%20and%20don't%20create%20any%20Teams%20and%20don't%20create%20any%20Teams%20for%20them%2C%20they%20won't%20be%20able%20to%20create%20Teams.%20And%20if%20you%20disable%20Chat%20they%20won't%20be%20able%20to%20chat%20and%20share%20files%20there.%20But%20then%20I%20don't%20see%20why%20you%20want%20to%20use%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20do%20you%20want%20to%20stop%20users%20from%20collaborating%20with%20files%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1155826%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155826%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F544032%22%20target%3D%22_blank%22%3E%40JuliaWu%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ESee%20here%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Foffice-365%2Fhow-block-users-from-sharing-files-in-teams%2Fm-p%2F666083%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Foffice-365%2Fhow-block-users-from-sharing-files-in-teams%2Fm-p%2F666083%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1155943%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155943%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20prevent%20data%20loss%20in%20the%20organization.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1155962%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155962%22%20slang%3D%22en-US%22%3EHi%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20referred%20to%20in%20the%20previous%20link%20you%20can%20control%20external%20sharing%20on%20SharePoint%20and%20OneDrive%20at%20a%20tenant%20level%20or%20at%20a%20site%20level%20(with%20permissions)%2C%20or%20you%20can%20apply%20Data%20Loss%20Prevention%20policies%20on%20content%20within%20SharePoint%2FOneDrive%20from%20the%20Office%20365%20Security%20and%20Compliance%20Centre%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20are%20the%20links%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fturn-external-sharing-on-or-off%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fturn-external-sharing-on-or-off%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdata-loss-prevention-policies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Fdata-loss-prevention-policies%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1156220%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1156220%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20say%20it%20is%20better%20to%20use%20the%20data%20loss%20prevention%20and%20disable%20external%20sharing%20(read%20the%20links%20from%20Chris)%20instead%20of%20disabling%20file%20sharing.%20File%20sharing%20and%20working%20with%20files%20together%20in%20Teams%20is%20a%20big%20part%20of%20Teams.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1279376%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1279376%22%20slang%3D%22en-US%22%3EBecause%20of%20DLP%20(Data%20Loss%20Prevention)%20concerns.%20Inside%20user%20could%20share%20sensitive%20files%20with%20outside%20people%20as%20a%20means%20to%20get%20data%20out%20of%20the%20company%20and%20avoid%20emailing%20or%20other%20means.%20Our%20systems%20have%20to%20be%20locked%20down%20to%20keep%20information%20inside.%20We%20have%20rules%20and%20security%20guidance%20implied%20by%20certain%20contracts%20that%20we%20have%20to%20follow.%20For%20instance%20PC%20are%20blocked%20from%20using%20removable%20media%20(USB%20and%20CDROM)%20but%20we%20also%20see%20the%20benefit%20of%20having%20the%20option%20to%20chat%20and%20do%20meetings%20with%20teams.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1491774%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1491774%22%20slang%3D%22en-US%22%3E%3CP%3EBeen%20on%20the%20same%20issue%2C%20here%20is%20how%20to%20do%20it%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fexchangekb.com%2F2020%2F06%2F26%2Fblock-file-sharing-in-teams%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fexchangekb.com%2F2020%2F06%2F26%2Fblock-file-sharing-in-teams%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1608321%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608321%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F544032%22%20target%3D%22_blank%22%3E%40JuliaWu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20a%20way%20to%20do%20it%20simply%20with%20a%20friendly%20UI%20called%20SphereShield.%20It%20has%20a%20granular%20approach%20to%20control%20which%20users%20have%20permission%20to%20file%20sharing%2C%20messaging%2C%20calls%20and%20screensharing%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20appsource%20link%3A%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fappsource.microsoft.com%2Fen-us%2Fproduct%2Fweb-apps%2Fagatsoftwaredevelopmentltd1592480580416.agatsoftware_msteams_ethicalwall_01%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fappsource.microsoft.com%2Fen-us%2Fproduct%2Fweb-apps%2Fagatsoftwaredevelopmentltd1592480580416.agatsoftware_msteams_ethicalwall_01%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20Official%20Site%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fagatsoftware.com%2Fmicrosoft-teams-ethical-wall%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fagatsoftware.com%2Fmicrosoft-teams-ethical-wall%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20best!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1155776%22%20slang%3D%22en-US%22%3EBlock%20File%20Sharing%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1155776%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20block%20file-sharing%20in%20Teams%3F%3C%2FP%3E%3CP%3EJust%20enable%20chat%20and%20calls%20service%20in%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBecause%20I%20tried%20to%20block%20it%20from%20the%20licensing%20view%20(disable%20Sharepoint%20online%20service)%20but%20it%20did%20not%20work...Besides%2C%20if%20I%20use%20conditional%20access%20to%20block%20Sharepoint%20online%2C%20it%20will%20also%20influence%20the%20access%20of%20Teams...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1155776%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Is it possible to block file-sharing in Teams?

Just enable chat and calls service in Teams.

 

Because I tried to block it from the licensing view (disable Sharepoint online service) but it did not work...Besides, if I use conditional access to block Sharepoint online, it will also influence the access of Teams...

 

JuliaWu_0-1581000632821.png

 

 

11 Replies

No, I don't think that is possible. If you disable OneDrive for users Teams will use OneDrive for file sharing in chats anyway. If you disable Sharepoint for users, Teams will use Sharepoint anyway for sharing in Channels. 

 

If you disable Team creation for users and don't create any Teams and don't create any Teams for them, they won't be able to create Teams. And if you disable Chat they won't be able to chat and share files there. But then I don't see why you want to use Teams.

 

Why do you want to stop users from collaborating with files?

@Linus Cansby 

To prevent data loss in the organization.

best response confirmed by adam deltinger (MVP)
Solution
Hi,

As referred to in the previous link you can control external sharing on SharePoint and OneDrive at a tenant level or at a site level (with permissions), or you can apply Data Loss Prevention policies on content within SharePoint/OneDrive from the Office 365 Security and Compliance Centre

Here are the links

https://docs.microsoft.com/en-us/sharepoint/turn-external-sharing-on-or-off
https://docs.microsoft.com/en-us/microsoft-365/compliance/data-loss-prevention-policies

Best, Chris

I would say it is better to use the data loss prevention and disable external sharing (read the links from Chris) instead of disabling file sharing. File sharing and working with files together in Teams is a big part of Teams. 

Because of DLP (Data Loss Prevention) concerns. Inside user could share sensitive files with outside people as a means to get data out of the company and avoid emailing or other means. Our systems have to be locked down to keep information inside. We have rules and security guidance implied by certain contracts that we have to follow. For instance PC are blocked from using removable media (USB and CDROM) but we also see the benefit of having the option to chat and do meetings with teams.

Been on the same issue, here is how to do it:

https://exchangekb.com/2020/06/26/block-file-sharing-in-teams/

@JuliaWu yes its possible and you can do that.

follow the below article. 

(1) ONEDRIVE & SHAREPOINT ONLINE BLOCK / REMOVE FEATURES 🧐 | LinkedIn

thanks it worked :)
data loss is a complicated thing, all the answers here is the way to stop share, they can't prevent loss.
if you are an engineer, yes, do these things because it's a job
if you are a manger or want to RCA, classify data, let people know how and why. these functions in machine is the last thing you need as tips.
Thanks, the question raised was on blocking sharing so I would expect solutions on blocking sharing, not data loss. If you want to stop data loss on the device, use endpoint DLP, WIP or app protection policies, or even better, transition to AVD/Windows 365 and remove the hardware out of the question, nothing will be able to be copied onto the device connected to the session.