Commands › Microsoft Teams

Grant-CsTeamsMeetingTemplatePermissionPolicy

Microsoft Teams MicrosoftTeams Grant-*

This cmdlet applies an instance of the TeamsMeetingTemplatePermissionPolicy to users or groups in a tenant.

Quick start script

# Grant-CsTeamsMeetingTemplatePermissionPolicy — 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
Grant-CsTeamsMeetingTemplatePermissionPolicy -Identity <String> -Rank <Int32> | Format-List

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

Syntax — 4 parameter sets

Identity (Default)

Grant-CsTeamsMeetingTemplatePermissionPolicy [<CommonParameters>]

GrantToUser

Grant-CsTeamsMeetingTemplatePermissionPolicy [-Identity] <String> [[-PolicyName] <String>] [<CommonParameters>]

GrantToGroup

Grant-CsTeamsMeetingTemplatePermissionPolicy [[-PolicyName] <String>] [-Group] <String> [-Rank] <Int32>
 [<CommonParameters>]

GrantToTenant

Grant-CsTeamsMeetingTemplatePermissionPolicy [[-PolicyName] <String>] [-Global] [-Force] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Force SwitchParameter Forces the policy assignment.
-Global SwitchParameter This is the equivalent to `-Identity Global`.
-Group String This is the identifier of the group that the policy should be assigned to.
-Identity String yes This is the identifier of the user that the policy should be assigned to.
-PolicyName String Specifies the Identity of the policy to assign to the user or group.
-Rank Int32 yes The rank of the policy assignment, relative to other group policy assignments for the same policy type.

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