Commands › Microsoft Teams

Get-CsGroupPolicyAssignment

Microsoft Teams MicrosoftTeams Get-*

This cmdlet is used to return group policy assignments.

Quick start script

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

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

Syntax

Get-CsGroupPolicyAssignment [-GroupId <String>] [-PolicyType <String>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-GroupId String The ID of a group whose policy assignments will be returned.
-PolicyType String The policy type for which group policy assignments will be returned. Possible values:

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