Manage site access based on sensitivity label
With Azure Active Directory authentication context (preview), you can enforce more stringent access conditions when users access SharePoint sites that have a sensitivity label applied.
Authentication contexts are used with sensitivity labels to connect Azure AD conditional access policies to labeled sites.
If you don't use sensitivity labels with SharePoint sites, you can directly apply an authentication context to a SharePoint site by using the Set-SPOSite PowerShell cmdlet.
Some apps do not currently work with authentication contexts. If you have Office apps or third party apps, we recommend testing them on a site with authentication context enabled before broadly deploying this feature. Currently, the following apps do not work with authentication contexts:
- Older version of Office apps (see the list of supported versions)
- Teams web app
- Workflows that use Power Apps or Power Automate
- Third-party apps
- The OneDrive sync app won't sync sites with an authentication context.
Using authentication context with SharePoint sites requires a Microsoft 365 E5 or Microsoft 365 E5 Compliance license for each user accessing a labeled site.
Setting up an authentication context for labeled sites requires these basic steps:
Add an authentication context in Azure Active Directory.
Create a conditional access policy that applies to that authentication context and has the conditions and access controls that you want to use.
Set a sensitivity label to apply the authentication context to labeled sites.
Add an authentication context
First, add an authentication context in Azure Active Directory.
To add an authentication context
In Azure Active Directory Conditional Access, under Manage, click Authentication context (Preview).
Click New authentication context.
Type a name and description and select the Publish to apps check box.
Create a conditional access policy
To create a conditional access policy
In Azure Active Directory Conditional Access, click New policy.
Type a name for the policy.
On the Users and groups tab, choose the Select users and groups option, and then select the All guest and external users check box.
On the Cloud apps or actions tab, under Select what this policy applies to, choose Authentication context (Preview), and select the check box for the authentication context that you created.
Choose if you want to enable the policy, and then click Create.
Update a sensitivity label
Next, update a sensitivity label (or create a new one) to use the authentication context.
To update a sensitivity label
In the Microsoft 365 compliance center, on the Information protection tab, click the label that you want to update and then click Edit label.
Click Next until you are on the Define protection settings for groups and sites page.
Ensure that the External sharing and Conditional Access settings check box is selected, and then click Next.
On the Define external sharing and device access settings page, select the Use Azure AD Conditional Access to protect labeled SharePoint sites check box.
Select the Choose an existing authentication context (preview) option.
In the dropdown list, choose the authentication context that you want to use.
Click Next until you are on the Review your settings and finish page, and then click Save label.