Grant-CsTeamsCallingPolicy

Assigns a specific Teams Calling Policy to a user, a group of users, or sets the Global policy instance.

Syntax

Grant-CsTeamsCallingPolicy
     [[-Identity] <string>]
     [[-PolicyName] <string>]
     [-PassThru]
     [<CommonParameters>]
Grant-CsTeamsCallingPolicy
     [[-PolicyName] <string>]
     [-PassThru]
     [-Global]
     [<CommonParameters>]
Grant-CsTeamsCallingPolicy
     [-Group] <string>
     [[-PolicyName] <string>]
     [-PassThru]
     [-Rank <int>]
     [<CommonParameters>]

Description

The Teams Calling Policies designate how users are able to use calling functionality within Microsoft Teams. This cmdlet allows admins to grant user level policies to individual users, to members of a group, or to set the Global policy instance.

Examples

Example 1

Grant-CsTeamsCallingPolicy -identity [email protected] -PolicyName SalesCallingPolicy

Assigns the TeamsCallingPolicy called "SalesCallingPolicy" to [email protected]

Example 2

Grant-CsTeamsCallingPolicy -Global -PolicyName SalesCallingPolicy

Assigns the TeamsCallingPolicy called "SalesCallingPolicy" to the Global policy instance. This sets the parameters in the Global policy instance to the values found in the SalesCallingPolicy instance.

Example 3

Grant-CsTeamsCallingPolicy -Group [email protected] -Rank 10 -PolicyName SalesCallingPolicy

Assigns the TeamsCallingPolicy called "SalesCallingPolicy" to the members of the group [email protected].

Parameters

-Global

Sets the parameters of the Global policy instance to the values in the specified policy instance.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Group

Specifies the group used for the group policy assignment.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Identity

The user object to whom the policy is being assigned.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Enables you to pass a user object through the pipeline that represents the user being assigned the policy. By default, the Grant-CsTeamsCallingPolicy cmdlet does not pass objects through the pipeline.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PolicyName

The name of the policy being assigned. To remove an existing user level policy assignment, specify PolicyName as $null.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Rank

The rank of the policy assignment, relative to other group policy assignments for the same policy type.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

System.Object

Notes

The GrantToGroup syntax is supported in Teams PowerShell Module 4.5.1-preview or later.