How To Manage Teams phone numbers



 Currently,  use PS to import those phone numbers to the CSV sheet, find a number not allocated and offer that to a new user.


Get-CsOnlineUser | Where-Object  { $_.LineURI -notlike $null } | Select-Object DisplayName,UserPrincipalName,LineURI | export-csv PHNumbers.csv -NoTypeInformation


How do we automate this process or PS script to find the unallocated number easily?

1 Reply

There are multiple third party tools that are available in case you want to keep updating the List of Unassigned Number. DID Management Tools with Microsoft Teams can solve the purpose as it is able to manage the DID from Calling Plans, Direct Routing and Operator Connect.

Reach out in case you need more information.

With Regards,
Satish Upadhyaya