Applies To

Call2Teams - Customers


TABLE OF CONTENTS


Overview

Currently the Sync process does not remove the Resource's account's Direct Dialling In (DDI) and calling policies. 

Customers must remove these from the Microsoft Tenant if they are planning to re-use the DDIs for other users. 


Solution

Remove the Resource Account's DDI's from the C2T portal first. 

Run a sync and then remove the DDI's and calling policies from Microsoft Teams using the PowerShell commands below:


Connect to Microsoft Teams PowerShell


Connect to Microsoft Teams PowerShell Module as described in the link here.


Remove DDI


Enter the following command:


Set-CsOnlineApplicationInstance -Identity "Email Address" -OnpremPhoneNumber $null



To confirm the script worked: Navigate to Microsoft Teams Admin Portal >Voice > Resource Account > Phone 

The number should no longer appear. 


Removing Policies


Enter the following commands:


Grant-CsHostedVoicemailPolicy -Identity "Email Address" -PolicyName $null

 

Grant-CsOnlineVoiceRoutingPolicy -Identity "Email Address" -PolicyName $null


 

Grant-CsTeamsCallingPolicy -identity "Email Address" -PolicyName $null



External Information



Disclaimer

Please note Dstny Automate cannot be held responsible for the content of any third-party documentation offered.