Commands › Microsoft Teams

Find-CsGroup

Microsoft Teams MicrosoftTeams Find-*

Search groups.

Quick start script

# Find-CsGroup — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Find-CsGroup -SearchQuery <String> | Format-List

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

Syntax

Find-CsGroup [-Tenant <Guid>] -SearchQuery <String> [-MaxResults <UInt32>] [-ExactMatchOnly <Boolean>] [-MailEnabledOnly <Boolean>]
[-Force] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-ExactMatchOnly Boolean The ExactMatchOnly parameter instructs the cmdlet to return exact matches only. The default value is false.
-Force SwitchParameter PARAMVALUE: SwitchParameter
-MailEnabledOnly Boolean Instructs the cmdlet to return mail enabled only groups.
-MaxResults UInt32 The MaxResults parameter identifies the maximum number of results to return. If this parameter is not provided, the default is value is 10.
-SearchQuery String yes The SearchQuery parameter defines a search query to search the display name or the sip address or the GUID of groups. This parameter accepts partial search query. The search is not case sensitive.
-Tenant Guid This parameter is reserved for internal Microsoft use.

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