When Microsoft moving more and more settings from Azure portal to Office 365 SCC portal then all settings is not available in the GUI anymore. We need to use PowerShell to use these settings. Not even the PowerShell, we also need the real Unified Labeling client installed on Windows.

What kind of settings do we need from advanced settings?

  • Hide/show the bar by default
  • Outlook default label
  • Disabled mandatory label in Outlook
  • Enabled/disabled custom permissions
  • Attachment action

There is a lot of more setting. You can read of them all from this link

To configure this settings you need to connect with PowerShell to the compliance portal.

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

If you use MFA just read my last post when I wrote about it. https://cloudtech.nu/2019/12/30/sensitivity-labels-in-microsoft-teams-office-365-groups-and-sharepoint-sites-are-now-in-public-preview/

# Show/Hide the bar
Set-LabelPolicy -Identity "Policy Name" -AdvancedSettings @{HideBarByDefault="False"}

# Set a separate label as default for just Outlook and keep the other default for rest of the application.
Set-LabelPolicy -Identity "Policy Name" -AdvancedSettings @{OutlookDefaultLabel="f6eda0a9-61e2-4f48-be69-d6cba1328015"}

# Disable the function of separate default label
Set-LabelPolicy -Identity "Policy Name" -AdvancedSettings @{OutlookDefaultLabel="None"}

# Excempt Outlook from standard label
Set-LabelPolicy -Identity Global -AdvancedSettings @{DisableMandatoryInOutlook="True"}

# CustomPermissions
Set-LabelPolicy -Identity "Policy Name" -AdvancedSettings @{EnableCustomPermissions="False"}

# Set Attachment action to automatic
Set-LabelPolicy -Identity Global -AdvancedSettings @{AttachmentAction="Automatic"}

Don´t forget to install the unified labeling client on each client that will use this functions. This will only work on Windows today but we all hope that they will be released to MacOS as well.