May 18 2020 07:54 AM
May 18 2020 07:54 AM
I have created a Sensitivity Label that prevents External Sharing. I have applied this Sensitivity Label to a new Team that I have created and it has successfully applied to the Group and the SharePoint Site associated with the Team.
It does what is expected and prevents guests from being invited to the Team/Group/Site but it does not prevent files/folders within the Site being shared with External parties. External Sharing on the SharePoint Site is enabled by default for new/existing guests but I would have expected the Sensitivity Label to change/overrule this and prevent files/folders from being shared as well as preventing guests from being invited.
Is this expected behaviour and if so is this a feature expected to be released once it goes into GA?
May 19 2020 07:43 AM
For now, this is expected behaviour. The label settings don't apply to any content in the container, only the container. In the example of external sharing, you are prohibiting adding guests to the group or site, but not its files.
Last I checked, there is currently a private preview of applying sensitivity labels automatically to files in SPO.
May 19 2020 08:16 AM
Thank you for the response @Ru, much appreciated :)
I am hoping this function in private preview prevents the file/folder that has the sensitivity label applied prevents it from being shared, regardless of the External Sharing setting on Sharepoint, as currently you CAN apply a sensitivity label to a file, but it does not prevent it from being shared
This would negate the need for a powershell script that identifies all Sharepoint Sites with an "Internal" sensitivity label and setting the SPOSharingCapability to "Disabled"
Lets see what the future brings - Thanks again!
May 21 2020 05:20 AM
May 23 2020 07:31 AM
May 26 2020 03:23 AM
Thank you for the responses guys, I am investigating the Auto-Labeling functions and they seem.. detailed!
I dont know if I need to set up a separate post for this but I need some assistance with a Sharepoint Online Powershell Script, essentially I want it to run across all SPO Sites in our environment on a schedule and do the below
Get-SPO Site where "SensitivityLabel" -eq blank
For-each SPOSite | Set-SPOSite -SensitivityLabel "GUID of Internal Sensitivity Label"
Get-SPOSite where Sensitivity Label -eq "GUID of Internal Sensitivity Label"
For each SPO Site | Set-SPOSite -SharingCapability Disabled
I am struggling to find a way in the script of identifying all SPO sites with no Sensitivity Label applied to the put into a variable and then apply a sensitivity label.
Can anyone help with a script to execute the logic above?
Dec 14 2020 02:52 AM