Skip to content
All articlesSharePoint

Information Barriers in SharePoint: Segments, Site Modes, Setup

How Microsoft Purview Information Barriers work on SharePoint sites: segments, the four site modes, what users see, and the commands to set up an ethical wall.

25 Nov 202615 min read
Information Barriers in SharePoint: Segments, Site Modes, Setup

What information barriers do in SharePoint

Information Barriers (IB) in SharePoint stop people outside a site's segments from opening the site, being added as members, or having its content shared with them. A segment is a set of users defined in Microsoft Purview. A SharePoint Administrator associates segments with a site, and the site's IB mode then decides who can open it, who can be invited and what can be shared. Law firms and banks know the same idea as an ethical wall.

Microsoft defines the feature this way: "Microsoft Purview Information Barriers (IB) is a compliance solution that restricts two-way communication and collaboration between groups and users in Microsoft Teams, SharePoint, and OneDrive. Often used in highly regulated industries, IB helps avoid conflicts of interest and safeguards internal information between users and organizational areas."

In SharePoint, IB policies detect and prevent four things:

  • adding a member to a site
  • a user accessing a site or its content
  • sharing a site or content with another user
  • searching a site

Microsoft's own examples show what that looks like in practice:

  • "A SharePoint site for Day Trader group can't be shared or accessed by anyone outside of the Day Trader group."
  • "A lawyer's data obtained from one client can't be accessed by a lawyer at the same firm who represents a different client."
  • "Instructors in one school can't communicate or share files with students in another school in the same school district."

Two limits shape every design. Barriers work in both directions only: Microsoft states that a setup where Marketing can collaborate with Day Traders but Day Traders cannot collaborate with Marketing "isn't supported". And email is outside the feature: IB policies "can't restrict communication and collaboration between groups and users in email messages including Exchange Online."

Segments and policies: the building blocks

Information barriers are built in Microsoft Purview first and applied to SharePoint second.

Building blockWhat it isLimits and rules
SegmentA set of groups or users, defined in the Microsoft Purview portal or with PowerShell from user account attributesUp to 5,000 segments in an organization. A user belongs to one segment, or up to 10 in multi-segment mode. Organizations in Legacy mode are limited to 250 segments
AttributesThe Microsoft Entra ID properties a segment is built fromThe most commonly used are Department, MemberOf, Company and ExtensionAttribute1-15
Block policyPrevents one segment from communicating with anotherDefine two policies, one for each direction
Allow policyAllows one segment to communicate with only certain other segmentsDefine two policies, one for each direction

Each segment can have only one IB policy applied. Microsoft's advice for most scenarios is to use block policies, "for user experience consistency". For groups, IB supports Microsoft 365 Groups only; distribution lists and security groups are treated as non-IB groups.

To manage IB policies you need one of these roles: Microsoft 365 global administrator, Office 365 global administrator, Compliance administrator, or IB Compliance Management.

Once policies are applied, Microsoft says to "allow 30 minutes for the system to start applying the policies", which are applied user by user at about 5,000 user accounts per hour.

Before you turn it on for SharePoint

Microsoft lists four prerequisites for SharePoint:

  1. Licensing. Meet the licensing requirements for Information Barriers. Microsoft's Purview service description says: "While defining IB Policy (Block or Allow), users belonging to segments defined under 'Assigned Segments' require licenses."
  2. Policies. Create the segments and define the users in each. Create IB policies that allow or block communication between the segments, and set them to active.
  3. Time. "Wait 24 hours after configuring and activating your IB policies for the changes to propagate through your organization."
  4. Enable SharePoint and OneDrive. Run the command in the next section.

Before the first IB policy, Microsoft also requires scoped directory search to be turned on in Microsoft Teams, with a wait of at least 24 hours before policies are defined. Audit logging, which is on by default, is needed to look up the status of a policy application.

Turn on information barriers for SharePoint

  1. Install the latest SharePoint Online Management Shell. If an earlier version is installed, uninstall it from Add or remove programs first.
  2. Connect to SharePoint Online as a SharePoint Administrator. Connect-SPOService has the syntax.
  3. Run:
Set-SPOTenant -InformationBarriersSuspension $false
  1. Wait about one hour for the change to take effect.

With Microsoft 365 Multi-Geo, run the command for each geo location. To suspend information barriers in SharePoint and OneDrive later, run the same command with $true.

Associate segments with a site

Segments are associated at the site level, which used to be called the site collection level. Microsoft's limit: "You can associate up to 100 compatible segments with a site." Adding a segment that is incompatible with the site's existing segments returns an error.

In the SharePoint admin center

  1. Open Active sites in the SharePoint admin center. The Segments column lists the first segment associated with each site and shows whether there are more.
  2. Select the site name to open the details panel.
  3. Select the Settings tab to see the complete list of segments.
  4. Select Edit, add or remove segments, then select Save.

With PowerShell

First get the segment GUIDs. Connect to Security & Compliance PowerShell and run:

Get-OrganizationSegment | ft Name, EXOSegmentID

Then, in the SharePoint Online Management Shell:

TaskCommand
Add a segment to a siteSet-SPOSite -Identity <site URL> -AddInformationSegment <segment GUID>
Remove a segment from a siteSet-SPOSite -Identity <site URL> -RemoveInformationSegment <segment GUID>
View the segments on a siteGet-SPOSite -Identity <site URL> | Select InformationSegment
View the IB mode of a siteGet-SPOSite -Identity <site URL> | Select InformationBarriersMode

Microsoft's example:

Set-SPOSite -Identity https://contoso.sharepoint.com/sites/ResearchTeamSite -AddInformationSegment 27d20a85-1c1b-4af2-bf45-a41093b5d111

What changes when you add or remove a segment

  • Adding a segment sets the site's IB mode to Explicit.
  • Removing all segments sets the site's IB mode to Open.
  • On a group-connected site, the Microsoft 365 group connected to the site is associated with the site's segment as well.
  • Site owners can add more segments to a site that is already in Explicit mode. Removing segments is a job for a SharePoint Administrator.

The four IB modes of a SharePoint site

Every site has an IB mode. It is set for you in most cases.

ModeWhen a site has itWho can accessSharing and membership
OpenThe site has no segments. The default for sites created by a non-segmented user or by an administratorAnyone with site access permissionsUsers share the site and its content "based on the IB policy applied to them"
Owner ModeratedSet by an administrator on a site with no segments, so that incompatible segments can work together. Also set when a user with multiple segments creates a siteUsers with site access permissions. On a group-connected site, members of the connected Microsoft 365 groupOnly the site owner can share the site and its content, according to their IB policy. Anyone with the link and company-wide links are disabled
ImplicitSet for Teams-connected sites within 24 hours of the team being provisionedMembers of the Microsoft 365 group connected to the siteContent is shared with existing members through a sharing link. New people are added by the team owner in Microsoft Teams
ExplicitSegments are associated with the site, through a segmented user creating it or an administrator adding a segmentUsers whose segment matches a segment on the site and who have access permissionSharing and new membership only for users whose segment matches the site

To set Owner Moderated mode, remove any segments from the site first, then run:

Set-SPOSite -Identity <site URL> -InformationBarriersMode OwnerModerated

Microsoft describes Owner Moderated as the mode "that grants incompatible segment users access to the site. Only the site owner can invite incompatible segment users to the same site." It is the one to use when two walled-off groups have a legitimate, supervised reason to work in one place.

What users see

People outside the site's segments. Microsoft's wording: "Non-segment users can't access a site associated with segments. They see an error message." To the person it looks like any other SharePoint access denied problem, so tell the help desk which sites carry segments.

Search. Results follow the same rules as access:

  • For sites with segments, a user sees results when their segment matches the site's segment and they have site access permission.
  • For sites in Open, Owner Moderated or Implicit mode, a user sees results for content they already have access to. Microsoft adds: "When the user selects the search result to open the content in the site, the user is denied access if they don't match the site's IB policy."

Copilot. For Implicit and Owner Moderated sites, Microsoft says that a user who had access before the policy was applied will "continue to see the site and its contents in search and Copilot results. However, when attempting to open the content, they're denied access if they don't comply with the site's IB policy."

When someone's segment changes. A site owner or member who moves to a different segment keeps or loses access according to the site's mode:

Site modeAccess after the person's segment changes
Open or Owner ModeratedKept, if they have existing site access permissions
ImplicitKept, if they are a member of the Microsoft 365 group
ExplicitKept only if their new segment matches the site's segment and they have site access permissions

Teams-connected sites and private channel sites

The SharePoint site behind a team is handled for you. Within 24 hours of the team being provisioned, the site's mode is set to Implicit and the segments of the team's members are associated with the site. Access and sharing then follow Microsoft 365 group membership, and the Information Barriers compliance assistant keeps that membership compliant. A SharePoint Administrator cannot manage segments on an Implicit site; the team's membership is managed in Microsoft Teams.

A new private channel site inherits its parent team's IB mode within 24 hours:

Parent team's IB modePrivate channel site's IB mode
OpenOpen
Implicit or Owner ModeratedImplicit

Keep sites compliant after policies change

When a compliance administrator changes an IB policy, the segments already on a site can stop being compatible with each other. Three tools show you where you stand.

The policy compliance report

The report lists the sites that do not comply with current policies, and for each one shows compatible segments, incompatible segments and invalid segments that no longer exist. It covers communication sites, team sites that are not connected to Microsoft Teams, and OneDrive accounts. Microsoft's guidance: "You only need to run this report if you change Information Barriers policies."

TaskCommand
Build the reportStart-SPOInformationBarriersPolicyComplianceReport
Check its statusGet-SPOInformationBarriersPolicyComplianceReport
View the reportGet-SPOInformationBarriersPolicyComplianceReport -reportid <ID>

When every site is compliant, HasNonCompliantSites is False and the Content row is empty. Each non-compliant site is listed with its SiteUrl, SiteType, ComplianceState, CurrentSegments, InvalidIBSegments and IncompatibleSegmentsPairs. In a large tenant the report can take a long time to run.

To fix a site in Explicit mode, a SharePoint Administrator changes its segments. For a site in Implicit mode, the Teams administrator corrects the team's membership.

The audit log

Audit events in the Microsoft Purview portal record these activities:

  • enabling and disabling information barriers for SharePoint and OneDrive
  • applying, changing and removing a segment on a site
  • applying and changing the IB mode of a site

The insights report

The SharePoint and OneDrive insights report, in preview, covers the top 100 most actively used sites and shows the distribution of IB modes across all sites. Start it with Start-SPOInformationBarriersInsightsReport and check it with Get-SPOInformationBarriersInsightsReport. One report is supported in each 24-hour period, and it can take up to one hour to create.

Users in more than one segment

In SingleSegment and Legacy modes a user belongs to one segment. Multi-segment mode lets you "assign users in your organization to up to 10 segments in Information Barriers instead of being limited to just one segment."

  1. In Security & Compliance PowerShell, run Get-PolicyConfig and read the InformationBarrierMode property. It is SingleSegment, MultiSegment or Legacy.
  2. From SingleSegment, with no IB segments or policies defined yet, run:
Set-PolicyConfig -InformationBarrierMode 'MultiSegment'

Decide this before you build anything. Microsoft's warning is plain: "If you enable multiple segments and configure IB in your organization, don't revert to single segment support." Organizations in Legacy mode stay on single segments.

For SharePoint, multi-segment mode changes two things. On an Explicit site, users get access "if they have at least one segment that matches the site's segment and they have site access permission." And a site created by a user with multiple segments starts in Owner Moderated mode.

Frequently asked questions

Is an information barrier the same as an ethical wall?

An ethical wall is the industry term for separating groups inside one organization so that information does not pass between them, such as lawyers acting for competing clients or traders and research analysts. Information Barriers is the Microsoft Purview feature that builds that separation in Microsoft Teams, SharePoint and OneDrive.

How many segments can a SharePoint site have?

Up to 100 compatible segments. Adding a segment that is incompatible with the ones already on the site returns an error.

How long do information barriers take to apply?

Microsoft gives three waits. Policies start applying after about 30 minutes and are processed at about 5,000 user accounts per hour. Wait 24 hours after activating policies before enabling SharePoint. After running Set-SPOTenant -InformationBarriersSuspension $false, wait about one hour.

Do information barriers apply to email?

IB policies cover Microsoft Teams, SharePoint and OneDrive. Microsoft states that they "can't restrict communication and collaboration between groups and users in email messages including Exchange Online."

Can a site owner change a site's segments?

A site owner can add segments to a site that is already in Explicit mode. Removing segments is done by a SharePoint Administrator.

Do information barriers hide a site from search and Copilot?

On a site with segments, people see results only when their segment matches and they have permission. On Open, Owner Moderated and Implicit sites, people who already had access can still see the content in search and Copilot results, and are denied when they try to open it if they do not match the site's IB policy.

What happens when someone moves to another department?

If their segment changes, access follows the site's mode. On Open and Owner Moderated sites they keep access through their existing permissions. On Implicit sites they keep it while they are a member of the Microsoft 365 group. On Explicit sites they keep it only if the new segment matches the site.

How do I turn information barriers off in SharePoint?

Run Set-SPOTenant -InformationBarriersSuspension $true as a SharePoint Administrator. With Multi-Geo, run it for each geo location.

Who sets up information barriers?

Two roles are involved. A Compliance administrator, or someone with the IB Compliance Management role, defines segments and policies in Microsoft Purview. A SharePoint Administrator turns the feature on for SharePoint and manages the segments on each site.

About the author
Mark Smith - Co-Founder, SmiKar Software

Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.

More about SmiKar

Ready when you are

Cut your Microsoft 365 storage bill - keep your data in your tenant.