Grant-CsTenantDialPlan

Use the Grant-DsTenantDialPlan cmdlet to assign an existing tenant dial plan to a user.

Syntax

Grant-CsTenantDialPlan
     [[-Identity] <Object>]
     [[-PolicyName] <Object>]
     [-Confirm]
     [-DomainController <Object>]
     [-PassThru]
     [-Tenant <Object>]
     [-WhatIf]
     [-AsJob]
     [<CommonParameters>]

Description

The Grant-DsTenantDialPlan cmdlet assigns an existing tenant dial plan to a user. Tenant dial plans provide information that is required for Enterprise Voice users to make telephone calls. Users who do not have a valid tenant dial plan cannot make calls by using Enterprise Voice. A tenant dial plan determines such things as how normalization rules are applied, and whether a prefix must be dialed for external calls.

You can check whether a user has been granted a per-user tenant dial plan by calling a command in this format: Get-CsOnlineUser "\<user name\>" | Select-Object TenantDialPlan.

Examples

-------------------------- Example 1 -------------------------- (Skype for Business Online)

Grant-CsTenantDialPlan -PolicyName Vt1tenantDialPlan9 -Identity (Get-CsOnlineUser Vt1_User1).SipAddress

This example grants the Vt1tenantDialPlan 9 dial plan to Vt1_User1.

Optional Parameters

-AsJob

{{Fill AsJob Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Confirm

The Confirm switch causes the command to pause processing, and requires confirmation to proceed.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-DomainController

Specifies the domain controller that's used by the cmdlet to read or write the specified data. Valid inputs for this parameter are either the fully qualified domain name (FQDN) or the computer name.

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Identity

The Identity parameter identifies the user to whom the policy should be assigned.

Type:Object
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-PassThru

PARAMVALUE: SwitchParameter

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-PolicyName

The PolicyName parameter is the name of the tenant dial plan to assign to the specified user.

Type:Object
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Tenant

Specifies the globally unique identifier (GUID) of your Skype for Business Online tenant account. For example: -Tenant "38aad667-af54-4397-aaa7-e94c79ec2308". You can find your tenant ID by running this command: Get-CsTenant | Select-Object DisplayName, TenantID

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-WhatIf

The WhatIf switch causes the command to simulate its results. By using this switch, you can view what changes would occur without having to commit those changes.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online