Commands › Exchange Online

Get-OrganizationSegment

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-OrganizationSegment cmdlet to view organization segments in the Microsoft Purview compliance portal.

Quick start script

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

# 2. Run and inspect
Get-OrganizationSegment | Format-List

# 3. Export for evidence / drift tracking
Get-OrganizationSegment | Export-Clixml .\OrganizationSegment-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

OrganizationSegmentsDefault (Default)

Get-OrganizationSegment [<CommonParameters>]

Identity

Get-OrganizationSegment [[-Identity] <PolicyIdParameter>]
 [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity PolicyIdParameter The Identity parameter specifies the organization segment that you want to view. You can use a value that uniquely identifies the segment. For example:

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