Forum Discussion
Sensitivity Labels - External Sharing in SharePoint
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?
Craig