Edit

Share via


Get-CsTeamsMeetingTemplatePermissionPolicy

Fetches the TeamsMeetingTemplatePermissionPolicy. This policy can be used to hide meeting templates from users and groups.

Syntax

Identity

Get-CsTeamsMeetingTemplatePermissionPolicy
    [[-Identity] <string>]
    [<CommonParameters>]

Filter

Get-CsTeamsMeetingTemplatePermissionPolicy
    [-Filter <string>]
    [<CommonParameters>]

Description

Fetches the instances of the policy. Each policy object contains a property called HiddenMeetingTemplates.This array contains the list of meeting template IDs that will be hidden by that instance of the policy.

Examples

Example 1 - Fetching all policies

PS C:\> Get-CsTeamsMeetingTemplatePermissionPolicy

Identity               : Global
HiddenMeetingTemplates : {}
Description            :

Identity               : Tag:Foobar
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056}
Description            :

Identity               : Tag:dashbrd test
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056}
Description            : test

Identity               : Tag:Default
HiddenMeetingTemplates : {}
Description            :

Fetches all the policy instances currently available.

Example 2 - Fetching a specific policy using its identity

PS C:\> Get-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar

Identity               : Tag:Foobar
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056}
Description            :

Fetches an instance of a policy with known identity.

Example 3 - Fetching policies using regex

PS C:\> Get-CsTeamsMeetingTemplatePermissionPolicy -Filter *Foo*

Identity               : Tag:Foobar
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056}
Description            :

The Filter parameter can be used to fetch policy instances based on partial matches on Identity.

Note: The "Tag:" prefix can be ignored when specifying the identity.

Parameters

-Filter

Applicable: Microsoft Teams

This parameter can be used to fetch policy instances based on partial matches on the Identity field.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
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

This parameter can be used to fetch a specific instance of the policy.

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.