Edit

Share via


New-CsTeamsMeetingTemplatePermissionPolicy

Creates a new instance of the TeamsMeetingTemplatePermissionPolicy.

Syntax

Default (Default)


    [-Identity] <string>
    [-HiddenMeetingTemplates<PSListModifier[HiddenMeetingTemplate]>]
    [-Description <string>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Creates a new instance of the policy with a name and a list of hidden meeting template IDs. The template IDs passed into the HiddenMeetingTemplates object must be valid existing template IDs. The current custom and first-party templates on a tenant can be fetched by Get-CsTeamsMeetingTemplateConfiguration and Get-CsTeamsFirstPartyMeetingTemplateConfiguration respectively.

Examples

Example 1 - Creating a new meeting template permission policy

Assuming there are two valid templates with IDs firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748 and customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056, we will first create the HiddenMeetingTemplate objects.

The next step would be to create the policy instance.

$hiddentemplate_1 = New-CsTeamsHiddenMeetingTemplate -Id customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056
$hiddentemplate_2 = New-CsTeamsHiddenMeetingTemplate -Id firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748

New-CsTeamsMeetingTemplatePermissionPolicy -Identity Test_Policy -HiddenMeetingTemplates @($hiddentemplate_1, $hiddentemplate_2) -Description "This is a test policy"
Identity               : Tag:Test_Policy
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056, firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748}
Description            : This is a test policy

Parameters

-Description

Applicable: Microsoft Teams

Description of the new policy instance to be created.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HiddenMeetingTemplates

Applicable: Microsoft Teams

The list of meeting template IDs to hide. The HiddenMeetingTemplate objects are created with New-CsTeamsHiddenMeetingTemplate.

Parameter properties

Type:

HiddenMeetingTemplate[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Identity

Applicable: Microsoft Teams

Name of the new policy instance to be created.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.