Apr 17 2017 08:17 AM
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.
Apr 17 2017 01:42 PM
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
Apr 24 2017 05:50 PM
Apr 25 2017 11:40 AM
As mentioned in my initial post I noodled through it. I was more complaining about the lack of documentation.
Thanks, though.