Commands › Exchange Online

Get-UnifiedGroup

Exchange Online ExchangeOnlineManagement Get-*

View Microsoft 365 Groups in your cloud-based organization. To view members, owners and subscribers for Microsoft 365 Groups, use the Get-UnifiedGroupLinks cmdlet.

Quick start script

# Get-UnifiedGroup — 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-UnifiedGroup | Format-List

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

Syntax — 2 parameter sets

Identity (Default)

Get-UnifiedGroup [[-Identity] <UnifiedGroupIdParameter>]
 [-Filter <String>]
 [-IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames]
 [-IncludeAllProperties]
 [-IncludeBypassModerationFromSendersOrMembersWithDisplayNames]
 [-IncludeGrantSendOnBehalfToWithDisplayNames]
 [-IncludeModeratedByWithDisplayNames]
 [-IncludeRejectMessagesFromSendersOrMembersWithDisplayNames]
 [-IncludeSoftDeletedGroups]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [<CommonParameters>]

AnrSet

Get-UnifiedGroup [-Anr <String>]
 [-Filter <String>]
 [-IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames]
 [-IncludeAllProperties]
 [-IncludeBypassModerationFromSendersOrMembersWithDisplayNames]
 [-IncludeGrantSendOnBehalfToWithDisplayNames]
 [-IncludeModeratedByWithDisplayNames]
 [-IncludeRejectMessagesFromSendersOrMembersWithDisplayNames]
 [-IncludeSoftDeletedGroups]
 [-ResultSize <Unlimited>]
 [-SortBy <String>]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity UnifiedGroupIdParameter The Identity parameter specifies the Microsoft 365 Group that you want to view. You can use any value that uniquely identifies the Microsoft 365 Group. For example:
-Anr String This parameter is reserved for internal Microsoft use.
-Filter String The Filter parameter uses OPATH syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
-IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames SwitchParameter The IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of AcceptMessagesOnlyFromSendersOrMembers recipients in the...
-IncludeAllProperties SwitchParameter The IncludeAllProperties switch specifies whether to include the values of all properties in the results. You don't need to specify a value with this switch.
-IncludeBypassModerationFromSendersOrMembersWithDisplayNames SwitchParameter The IncludeBypassModerationFromSendersOrMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of BypassModerationFromSendersOrMembers recipients in the...
-IncludeGrantSendOnBehalfToWithDisplayNames SwitchParameter The IncludeGrantSendOnBehalfToWithDisplayNames switch specifies whether to return the SMTP addresses and display names of GrantSendOnBehalfTo recipients in the GrantSendOnBehalfToWithDisplayNames property. You don't...
-IncludeModeratedByWithDisplayNames SwitchParameter The IncludeModeratedByWithDisplayNames switch specifies whether to return the SMTP addresses and display names of ModeratedBy recipients in the ModeratedByWithDisplayNames property. You don't need to specify a value...
-IncludeRejectMessagesFromSendersOrMembersWithDisplayNames SwitchParameter The IncludeRejectMessagesFromSendersOrMembersWithDisplayNames switch specifies whether to return the SMTP addresses and display names of RejectMessagesFromSendersOrMembers recipients in the...
-IncludeSoftDeletedGroups SwitchParameter The IncludeSoftDeletedGroups switch specifies whether to include soft-deleted Microsoft 365 Groups in the results. You don't need to specify a value with this switch.
-ResultSize Unlimited The ResultSize parameter specifies the maximum number of results to return. If you want to return all requests that match the query, use unlimited for the value of this parameter. The default value is 1000.
-SortBy String The SortBy parameter specifies the property to sort the results by. You can sort by only one property at a time. The results are sorted in ascending order.

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