In order to check what sensitivity label is applied to O365 group you may go to Azure portal > Azure Active Directory > Groups > select group. Sensitivity label will be displayed in overview tab of the group:
In order to get sensitivity label applied to O365 group programmatically via Graph API you may use the following endpoint:
In this article I will show how different sensitive labels affect UX on the standard Create new Team form. For testing I created 6 different sensitive labels with different Privacy and external sharing settings:
Name
Privacy
External user access
1
Private
Private
No
2
Public
Public
No
3
Private or public
None
No
4
Private with external users
Private
Yes
5
Public with external users
Public
Yes
6
Private or public with external users
None
Yes
Let’s see how teams creation form looks like for each sensitivity label from table above.
In my previous post I showed how to enable sensitivity labels for different containers (SPO sites, Teams, O365 groups) in the tenant . Let’s see in more details how exactly applying of sensitivity labels looks like and to which exact containers it can be applied.
First of all let’s go to Sharepoint Online and try to create new site there. We will see that sensitivity labels are available for Modern Sharepoint Online sites: both Modern Team site
and Modern Communication sites
But if we will try to create Classic site (e.g. using Publishing Portal site template) we will see that sensitivity labels are not available:
So for Classic Sharepoint sites sensitivity labels are not available.
Next let’s go to Teams and try to create new Team there: we will see that Sensitivity field appeared on the Teams creation form:
Finally if we will go to Azure portal and will try to create new O365/M365 group we will also see that Sensitivity field will be available:
In the future posts we will check other details of sensitivity labels functionality in O365.
Sensitivity labels help to maintain content in your organization. In opposite to classification labels which are more like additional metadata for O365 groups/SP sites where custom policies have to be enforced by internal tools or custom PowerShell scripts (i.e. don’t have O365 policies assigned to them) sensitivity labels have policies behind and allow to use O365 infrastructure to maintain sensitive data in your organization.
Sensitivity labels may be enabled from several places:
By default they can be used for files in emails but in order to enable them for “container” (SP online sites, Teams and O365 groups) several additional steps should be done:
1. First of all enable sensitivity labels from PowerShell using the following script:
If you will have error "It is about Unable to resolve package source https://www.powershellgallery.com/api/v2” then start new PowerShell session as administrator and run the following command as 1st command in the session:
After these steps you will be able to create sensitivity labels for SP sites, Teams and O365 groups. Let’s see how it looks like in Security and compliance center > Classification > Sensitivity labels. Pay attention that there is now the following note:
You can now create sensitivity labels with privacy and access control settings for Teams, SharePoint sites, and Microsoft 365 Groups.
Click Create a label – after that New label wizard will be opened. On the first step we need tp specify name and description and on 2nd step it will be possible to choose both Files & emails and Groups & sites:
Here we are interested in Groups and sites so let’s keep only this option checked. Skip next step for Files and emails and open next step “Define protection settings for groups and sites”. On this step we may set “Privacy and external user access settings” and “Device access and external sharing settings”:
E.g. if we will check “Privacy and external user access settings” then on the next step we will be able to set privacy and external users settings for sites/teams/groups for which this label will be applied:
On the final step we will need to publish our new label (this will open own wizard).
After label has been published it will take up to 10 minutes before it will appear in O365 UI:
This is how you may enable sensitive labels for SP sites, Teams and O365 groups. Hope this information will help someone.