Office 365: How to add classification settings to Office 365 Groups!

As you surely know, it’s currently possible to add classification settings to Office 365 Groups by using a classification list. To add this classification list, you will need to execute some PowerShell cmdlets as I will show you in this article:

  • You will have to download the preview version of the Azure Active Directory Module for Windows PowerShell from the following URL:

http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185

  • Be careful and download the preview version of the cmdlets that has, unexpectedly, a lower version than the general available one:

image

  • Once you have installed the cmdlets, execute the following PowerShell script that allows to create a classification list for Office 365 Groups in your tenant:
$sUserName="jcgonzalez@nuberosnet.onmicrosoft.com"
$sMessage="Introduce your O365 Credentials"
$Cred=Get-Credential -UserName $sUserName -Message $sMessage

#Classification List
$GroupsSettingsID = (Get-MsolAllSettings -TargetType Groups).ObjectID 
$GroupsExistingSettings = Get-MsolSettings -SettingId $GroupsSettingsID 
$GroupsConfigurationValues = $GroupsExistingSettings.GetSettingsValue()
$GroupsConfigurationValues["UsageGuidelinesUrl"] = "http://office365exchange.com/GroupGuidelines.html"
$GroupsConfigurationValues["ClassificationList"] = "General Usage, External Access, Internal Only, Confidential"
Set-MsolSettings -SettingId $GroupsSettingsID  -SettingsValue $GroupsConfigurationValues
  • Once the list is created, you are almost done and only need to configure an existing Group to use the classification list you have just created. To do this, simply execute the following PowerShell script that updates an existing group with the classification list using the Set-UnifiedGroup cmdlet:
$PSSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection
Import-PSSession $PSSession
$GroupEMail="nubclassificationgroup@nuberos.es"
$sGroupClassification="General Usage"
Set-UnifiedGroup $GroupEMail -Classification $sGroupClassification
  • Finally, just verify that the classification settings are shown in the update group.

image

References:

Office 365: Como añadir opciones de clasificación en Grupos de Office 365!

Para añadir opciones de clasificación a Grupos de Office 365 necesitamos hacer uso de comandos PowerShell específicos para trabajar con Grupos de Office 365:

  • Necesitáis descargaros la versión preview del módulo de directorio activo para Windows PowerShell desde la siguiente página de Connect:

http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185

  • Ojo, que tenéis que hacer uso de la versión preview que curiosamente tiene un número de versión menor que la última versión disponible de los comandos:

image

  • Una vez instalados los cmdlets, ejecutáis el módulo de Windows Azure Active Directory para PowerShell y ejecutamos la siguiente secuencia que permite crear las opciones de clasificación:
$sUserName="jcgonzalez@nuberosnet.onmicrosoft.com"
$sMessage="Introduce your O365 Credentials"
$Cred=Get-Credential -UserName $sUserName -Message $sMessage

#Classification List
$GroupsSettingsID = (Get-MsolAllSettings -TargetType Groups).ObjectID 
$GroupsExistingSettings = Get-MsolSettings -SettingId $GroupsSettingsID 
$GroupsConfigurationValues = $GroupsExistingSettings.GetSettingsValue()
$GroupsConfigurationValues["UsageGuidelinesUrl"] = "http://office365exchange.com/GroupGuidelines.html"
$GroupsConfigurationValues["ClassificationList"] = "General Usage, External Access, Internal Only, Confidential"
Set-MsolSettings -SettingId $GroupsSettingsID  -SettingsValue $GroupsConfigurationValues
  • A continuación, ejecutamos el siguiente Script PowerShell que permite configurar un Grupo existente con uno de los valores de la lista de clasificación definida:
$PSSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection
Import-PSSession $PSSession
$GroupEMail="nubclassificationgroup@nuberos.es"
$sGroupClassification="General Usage"
Set-UnifiedGroup $GroupEMail -Classification $sGroupClassification
  • Comprobamos para el Grupo que se ha aplicado el valor de la lista de clasificación:

image

Referencias: