Get-OrganizationSegment

This cmdlet is available only in Security & Compliance Center PowerShell. For more information, see Security & Compliance Center PowerShell (https://docs.microsoft.com/powershell/exchange/scc-powershell).

Use the Get-OrganizationSegment cmdlet to view organization segments in the Security & Compliance Center.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax (https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).

Syntax

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

Description

Segments are defined by using certain attributes in Azure Active Directory.

You need to be assigned permissions in the Security & Compliance Center before you can use this cmdlet. For more information, see Permissions in the Security & Compliance Center.

Examples

Example 1

Get-OrganizationSegment | Format-List Name,UserGroupFilter

This example returns a summary list of all organization segments.

Example 2

Get-OrganizationSegment -Identity "Engineering Group"

This example returns detailed information about the organization segment named Engineering Group.

Parameters

-Identity

The Identity parameter specifies the organization segment that you want to view. You can use any value that uniquely identifies the segment. For example:

  • Name

  • Distinguished name (DN)

  • GUID

Type:PolicyIdParameter
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
Applies to:Office 365 Security & Compliance Center

Inputs

Outputs