How to protect sensitive information in SharePoint Online using Purview Sensitivity Labels
Tags: security, sharepointonline, sharepoint, microsoft365
Published: 2024-02-06 16:38:36

---
title: How to protect sensitive information in SharePoint Online using Purview Sensitivity Labels
published: true
date: 2024-02-06 15:30:35 UTC
tags: Security,SharePointOnline,SharePoint,microsoft365
canonical_url: https://blogit.create.pt/miguelisidoro/2024/02/06/how-to-protect-sensitive-information-in-sharepoint-online-using-purview-sensitivity-labels/
---

This post explains how we can use Microsoft Purview Sensitivity Labels to protect sensitive information stored in a SharePoint Online site.

## What are Sensitivity Labels?

Microsoft Purview Sensitivity Labels are a data classification and protection system that helps organizations identify, classify, and protect sensitive information across Microsoft 365 and other services. They help you:

- **Classify your data:**  Define different levels of sensitivity for your data, such as Confidential, Highly Confidential, and Public.
- **Protect your data:**  Apply protection settings to different levels of sensitivity, such as encryption, access restrictions, and data loss prevention.
- **Track your data:**  Track the movement of sensitive data and identify potential data breaches.

Here are some of the benefits of using Microsoft Purview Sensitivity Labels:

- **Reduces the risk of data breaches:**  By classifying and protecting your sensitive data, you can make it more difficult for unauthorized users to access it.
- **Improves compliance:**  Sensitivity labels can help you meet compliance requirements for data privacy and security.
- **Increases productivity:**  By making it easier for users to identify and protect sensitive data, you can help them be more productive.

## Allow the creation of Sensitivity Labels

The creation of Sensitivity Labels, may be disabled in your Office 365 tenant. To ensure you can create Sensitivity Labels, run the following script in a PowerShell window. Make sure to change the variables to your environment accordingly.

```

$AdminCenterURL = "https://dev-admin.sharepoint.com"
Connect-SPOService -Url $AdminCenterURL
Set-SPOTenant -EnableAIPIntegration $true

Import-Module AzureAD
Connect-AzureAD
$Setting = Get-AzureADDirectorySetting -Id (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ).id
$Setting["EnableMIPLabels"] = "True"
Set-AzureADDirectorySetting -Id $Setting.Id -DirectorySetting $Setting

```

If you don’t have the AzureAD PowerShell module installed, install it before executing the script by running:

```

Install-Module AzureAD -AllowClobber

```

## Creating a Sensitivity Label

To create a Sensitivity Label, follow the following steps:

- Access the Microsoft Purview compliance portal at [https://compliance.microsoft.com/](https://compliance.microsoft.com/) with your Microsoft 365 credentiais.
- Select Information protection –> Labels

![](https://blogit.create.pt/wp-content/uploads/2024/02/Purview_Labels.jpg)

- Select “Create a label”

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label.jpg)

- Give the label a name. Example: Confidential. In the end, click Next.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_2-1024x770.jpg)

- Define the scope of the label. Choose both “Items” and “Groups & sites”. This will allow you to apply the label to both documents and SharePoint sites. In this post, I will focus on SharePoint sites.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_3-1024x749.jpg)

- Choose the protection settings for the labeled items. Select “Apply or remove encryption”. If you want to apply a content marking to the labeled items, select “Apply content marking”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_4-1024x761.jpg)

- Define the encryption settings. Select “Configure encryption settings” with the following parameters:
  - Assign permissions now or let users decide? : Assign permissions now. With this setting, when the label is applied, the permissions we will define below will be applied
  - User access to content expires: Never. With this setting, users will not loose access after a period of time.
  - Allow offline access: Always. With this setting, users may edit documents offline.

In the end, select “Add permissions”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_5-1024x761.jpg)

- For this example, for simplicity, in the “Assign permissions” screen, select “Add any authenticated users”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_6.jpg)

- Select “Choose permissions”

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_7.jpg)

- Select “Viewer” permission and click “Save” twice to close the “Assign permission” window.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_8.jpg)

With this permission, we are granting all authenticated users the Viewer permissions which will grant readonly permissions to the documents classified with this label.

- Next, we want to add edit permissions to a group of users. Select “Assign permission” again.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_9-1024x246.jpg)

- Select “Add users or groups” and choose a group of users you want to assign edit permissions to.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_10.jpg)

- Select the “Reviewer” permission

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_11.jpg)

- Confirm all permissions and click Next.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_12.jpg)

- Don’t select the option “Auto-labeling for files and emails”. Click Next. 

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_13.jpg)

- Select “Privacy and external user access” and “External sharing and Conditional Access” options.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_14.jpg)

- In “Privacy” section, select “Private”. This way, only team owners and members can acess the group or team. In the “External user access”, don’t select the option “Let Microsoft 365 Group owners add people outside your organization to the group as guests.”. This way, only users from within the organization can access the SharePoint site.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_15.jpg)

- In “Define external sharing and conditional access settings”, select “Control external sharing from labeled SharePoint sites” and “Use Microsoft Entra Conditional Access to protect labeled SharePoint sites”. In the “Control external sharing from labeled SharePoint sites” section, select “Only people in your organization”. This way, SharePoint sites labeled with this label, will only be acessed by and shared with people in your organization. In the “Use Microsoft Entra Conditional Access to protect labeled SharePoint sites”, select “Allow limited, web-only access”. This will only allow users from unmanaged devices (devices not managed by your organization, typically personal devices) to access documents in the labeled SharePoint sites using the browser (not being to synchronize the document libraries for offline access, download documents or open documents in the Office desktop applications).

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_16.jpg)

- In the “Auto-labeling for schematized data assets (preview)” section, leave the option unselected and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_17.jpg)

- Review the label settings and click “Create label” to finish the label creation process.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_18.jpg)

## Publish a Sensitivity Label

In order for a label to be made available, we need to publish it. To publish a label, follow the following steps:

- In the Labels page, select the label and the option “Publish label”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_19-1024x642.jpg)

- In “Assign admin units” page, leave the default values and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_21.jpg)

- In “Publish to users and groups”, add all users and groups and then click “Next”. If you want to test the Label to a restricted group of users, select a group with the users that you want to include in test.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_22.jpg)

- In “Policy settings”, leave all options unselected and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_23.jpg)

- In Default settings for documents, select “None” for “Default label”. With this selection, labels won’t be applied by default to Office documents. Click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_24.jpg)

- In Default settings for emails, select “Same as document” in “Default Label” and leave the checkbox “Email inherits highest priority label from attachments” unchecked and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_25.jpg)

- In “Default settings for meetings and calendar events”, select “None” for “Default label” and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_26.jpg)

- In “Default settings for sites and groups”, select “None” for “Default label” and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_27.jpg)

- In “Default settings for Fabric and Power BI content”, select “None” for “Default label” and click “Next”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_28.jpg)

- In “Name your policy”, name your policy and give it a description.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_29.jpg)

- Review and submit the Label policy to finish the policy creation process.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Label_30.jpg)

**NOTE:** New labels may take up to 1h to be available. Updates to existing labels may take up to 24h to take effect.

## Testing Access to SharePoint

To test if the label is successfully applied, we are going to create a SharePoint Team site and apply the label to the site. Follow the following steps:

- Click SharePoint in the left top corner to go to the SharePoint homepage
- In the SharePoint homepage, create a new site.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_01.jpg)

- Choose a Team Site

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_02-1024x710.jpg)

- Choose any template. For simplicity, I selected “Standard team”.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_03-1024x724.jpg)

- Click on “Use Template”

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_04-1024x723.jpg)

- Set the site name, group email address and site address.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_05.jpg)

- Set the sentitivity label for the new site by choosing the label we created earlier. The privacy will automatically be set to Private as we defined in the label settings.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_06-1024x726.jpg)

- Add site owners and members to the site.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_07-1024x705.jpg)

- Access the site with an unmanaged device. In this example, the site was created as a “Private” group and with the label “Confidential”. As the site was configured to only allow access from the browser and not allow the use of Office desktop applications by devices not managed by the organization, a message appears at the top of the site indicating that it is not possible to download the documents or sync the documents for offline access.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_08-1024x527.jpg)

- In the “Documents” document library, verify that it is not possible to sync documents for offline access (“Sync” command should not be available in the command bar).

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_09-1024x428.jpg)

- In the “Documents” document library, verify that it is not possible to download documents (“Download” option should not be available in the document context menu).

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_10-1024x804.jpg)

- In the “Documents” document library, verify that it is not possible to open a document using the desktop application and that documents can only be opened using the browser.

![](https://blogit.create.pt/wp-content/uploads/2024/02/Create_Site_11-1024x541.jpg)

## Related Articles

To learn why your business should migrate to SharePoint Online and Office 365, click [here](https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/) and [here](https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/).

If you want to learn how to develop SPFx solutions, click [here](https://dev.to/mlisidoro/sharepoint-framework-spfx-learning-guide-1fnf).

If you want to learn how you can rename a modern SharePoint site, click [here](https://blogit.create.pt////miguelisidoro/2019/09/23/how-to-rename-a-modern-sharepoint-site-url-in-office-365/).

If you want to learn how to save time time scheduling your meetings, click [here](https://blogit.create.pt////miguelisidoro/2020/04/12/save-time-scheduling-microsoft-teams-meetings-using-findtime/).

If you want to learn how to enable Microsoft Teams Attendance List Download, click [here](https://blogit.create.pt////miguelisidoro/2020/09/20/how-to-enable-teams-meeting-attendance-list-download-in-microsoft-365/).

If you want to learn how to create a dynamic org-wide team in Microsoft Teams with all active employees, click [here](https://blogit.create.pt/miguelisidoro/2020/09/21/how-to-create-a-dynamic-team-in-microsoft-teams-with-all-active-employees-in-microsoft-365/).

If you want to modernize your SharePoint classic root site to a modern SharePoint site, click [here](https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/).

If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click [here](https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/) and [here](https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/).

If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click [here](https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/).

If you prefer to use the traditional method to update your farm and want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated, click [here](https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/).

If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click [here ](https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/)and [here](https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/).

If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click [here](https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/) and [here](https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/).

If you want to learn how to upgrade a SharePoint 2010 farm to SharePoint 2016, click [here ](https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/)and [here](https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/).

If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these [learning resources](https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/).

If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read [this article](https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/).

If you want to know all about the latest SharePoint and Office 365 announcements from Ignite and some more recent announcements, including Microsoft Search, What’s New to Build a Modern Intranet with SharePoint in Office 365, Deeper Integration between Microsoft Teams and SharePoint and the latest news on SharePoint development, click [here](https://blogit.create.pt////miguelisidoro/2018/11/21/whats-new-for-sharepoint-and-office-365-after-microsoft-ignite-2018/).

If your organization is still not ready to go all in to SharePoint Online and Office 365, a hybrid scenario may be the best choice. SharePoint 2019 RTM was recently announced and if you to learn all about SharePoint 2019 and all its features, click [here](https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/).

Happy SharePointing!

The post [How to protect sensitive information in SharePoint Online using Purview Sensitivity Labels](https://blogit.create.pt/miguelisidoro/2024/02/06/how-to-protect-sensitive-information-in-sharepoint-online-using-purview-sensitivity-labels/) appeared first on [Blog IT](https://blogit.create.pt).