Commands › Microsoft Teams

Get-GroupAssignmentRecommendationsPerPolicyType

Microsoft Teams MicrosoftTeams Get-*

As an admin, you can get group policy assignments recommendations based on the existing direct assignments for a policy type.

Quick start script

# Get-GroupAssignmentRecommendationsPerPolicyType — 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-GroupAssignmentRecommendationsPerPolicyType -EntityType <String> | Format-List

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

Syntax

Get-GroupAssignmentRecommendationsPerPolicyType -EntityType <String> [-GroupThreshold <String>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-EntityType String yes Entity type from which the cmdlet will provide the recommendations.
-GroupThreshold String Group threshold used to define the minimum number of users per group that will be recommended.

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