How to remove tenant dial plan from user?

Brass Contributor

We have been playing with tenant dial plans, and the documentation does not indicate how to remove a dial plan from a user.

 

This seems to work:

 

Grant-CsTenantDialPlan - Identity fred.smith@microsoft.com -PolicyName ""

 

I tried -PolicyName null, but this doesn't work, which is inconsistent behavior compared to other Powershell commands (Grant-CsCallingLineIdentity for example).

 

It would be really nice if the documentation was completed and all the Powershell commands worked the same way.

3 Replies

Hi TJ,

 

I just tested this out and it works as long as I use the PowerShell variable "$null".  Using "null" implies a string value and a dial plan named "null".

 

 

PS C:\> $csou | Get-CsOnlineUser | select tenantdialplan
TenantDialPlan
--------------
            
PS C:\> Grant-CsTenantDialPlan -PolicyName TestingDP -identity $CSOu.sipAddress
PS C:\> $csou | Get-CsOnlineUser | select tenantdialplan
TenantDialPlan
--------------
TestingDP     

PS C:\> Grant-CsTenantDialPlan -PolicyName $null -identity $CSOu.sipAddress
PS C:\> $csou | Get-CsOnlineUser | select tenantdialplan
TenantDialPlan
--------------
              
PS C:\> 

 

HTH,

-Kit

 

Thank you Kit for jumping in for help. Hi TJ, feel free to open a support case if you still need help on this. Thanks!

As mentioned in my initial post I noodled through it.  I was more complaining about the lack of documentation.

 

Thanks, though.