SOLVED

Mark new files as sensitive by default

%3CLINGO-SUB%20id%3D%22lingo-sub-2232357%22%20slang%3D%22en-US%22%3EMark%20new%20files%20as%20sensitive%20by%20default%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2232357%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20this%20article%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fsensitive-by-default%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fsensitive-by-default%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20run%20the%20cmdlet%20%3CSPAN%20class%3D%22hljs-pscommand%22%3ESet-SPOTenant%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-parameter%22%3E%E2%80%AF-MarkNewFilesSensitiveByDefault%3C%2FSPAN%3E%3CSPAN%3E%20BlockExternalSharing%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBut%20it%20does%20not%26nbsp%3Bwork%20as%20expected.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhen%20new%20files%20are%20added%20to%20SharePoint%20or%20OneDrive%20in%20Microsoft%20365%2C%20they%26nbsp%3Bstill%20can%20share%20with%20external%20users%20in%20the%20first%20few%20minutes.%20After%20a%20few%20minutes%20the%20DLP%20policy%20scan%20the%20files%20and%20add%20policy%20tips%20and%20block%20icons%2C%20then%20I%20no%20longer%20can%20share%20those%20files%20with%20external%20contacts.%20Any%20thought%20on%20this%20issue%3F%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%20Peter%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2232357%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECompliance%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Contributor

According to this article https://docs.microsoft.com/en-us/sharepoint/sensitive-by-default

I run the cmdlet Set-SPOTenant -MarkNewFilesSensitiveByDefault BlockExternalSharing

But it does not work as expected.  

When new files are added to SharePoint or OneDrive in Microsoft 365, they still can share with external users in the first few minutes. After a few minutes the DLP policy scan the files and add policy tips and block icons, then I no longer can share those files with external contacts. Any thought on this issue?

Thanks, Peter

1 Reply
best response confirmed by px091 (Contributor)
Solution
I found the answer. I have to download the most recent SharePoint Online Management Shell first.