Commands › Exchange Online

New-InformationBarrierPolicy

Exchange Online ExchangeOnlineManagement New-*

For more information, see Security & Compliance PowerShell. Use the New-InformationBarrierPolicy cmdlet to create information barrier policies in the Microsoft Purview compliance portal.

Quick start script

# New-InformationBarrierPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-InformationBarrierPolicy
$before | Format-List

# 3. Make the change (dry run first)
New-InformationBarrierPolicy -Name <String> -AssignedSegment <String> -SegmentAllowedFilter <String> -WhatIf
New-InformationBarrierPolicy -Name <String> -AssignedSegment <String> -SegmentAllowedFilter <String>

# 4. Verify and diff
$after = Get-InformationBarrierPolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax — 3 parameter sets

OrganizationSegmentAllowedFilter

New-InformationBarrierPolicy [-Name] <String> -AssignedSegment <String> -SegmentAllowedFilter <String>
 [-Comment <String>]
 [-Confirm]
 [-Force]
 [-ModerationAllowed <Boolean>]
 [-State <EopInformationBarrierPolicyState>]
 [-WhatIf]
 [<CommonParameters>]

OrganizationSegmentsAllowed

New-InformationBarrierPolicy [-Name] <String> -AssignedSegment <String> -SegmentsAllowed <MultiValuedProperty>
 [-Comment <String>]
 [-Confirm]
 [-Force]
 [-ModerationAllowed <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

OrganizationSegmentsBlocked

New-InformationBarrierPolicy [-Name] <String> -AssignedSegment <String> -SegmentsBlocked <MultiValuedProperty>
 [-Comment <String>]
 [-Confirm]
 [-Force]
 [-ModerationAllowed <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Name String yes The Name parameter specifies a unique name for the information barrier policy that you want to create. The maximum length is 64 characters. If the value contains spaces, enclose the value in quotation marks (").
-AssignedSegment String yes The AssignedSegment parameter specifies the Name value of segment that you want to include in the information barrier policy. You can find existing segments by running the following command: `Get-OrganizationSegment...
-SegmentAllowedFilter String yes This parameter is reserved for internal Microsoft use.
-SegmentsAllowed MultiValuedProperty yes The SegmentsAllowed parameter specifies the segments that are allowed to communicate with the segment in this policy (users defined by the AssignedSegment parameter). Only these specified segments can communicate...
-SegmentsBlocked MultiValuedProperty yes The SegmentsBlocked parameter specifies the segments that aren't allowed to communicate with the segment in this policy (users defined by the AssignedSegment parameter). You can specify multiple segments separated by...
-Comment String The Comment parameter specifies an optional comment. If you specify a value that contains spaces, enclose the value in quotation marks ("), for example: "This is an admin note".
-Confirm SwitchParameter This parameter is reserved for internal Microsoft use.
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-ModerationAllowed Boolean {{ Fill ModerationAllowed Description }}
-State EopInformationBarrierPolicyState The State parameter specifies whether the information barrier policy is active or inactive. Valid values are:
-WhatIf SwitchParameter The WhatIf switch doesn't work in Security & Compliance PowerShell.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.