Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample PowerShell to set up SP Online site classifications
$me = Get-Credential
Import-Module AzureADPreview
Connect-AzureAD -Credential $me
# Create the new setting
$template = Get-AzureADDirectorySettingTemplate | Where-Object {$_.DisplayName -eq "Group.Unified"}
$setting = $template.CreateDirectorySetting()
$setting["UsageGuidelinesUrl"] = "http://www.microsoft.com/"
$setting["ClassificationList"] = "Secret, Confidential, Internal, Public"
$setting["DefaultClassification"] = "Confidential"
New-AzureADDirectorySetting -DirectorySetting $setting
# View settings to check for success
Get-AzureADDirectorySetting -All $true | % {$_.values}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment