Forum Discussion
Enable Direct Routing for Users - From External Applications
As of now, Microsoft Graph API does not provide direct support for configuring Teams settings like enabling enterprise voice. To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.
However, you can achieve this functionality using PowerShell cmdlets.
To enable enterprise voice and other settings for a user in Teams, you can use the PowerShell cmdlets provided by the Skype for Business Online module. This module allows you to manage various aspects of Teams, including voice settings.
# Connect to Skype for Business Online
Import-Module SkypeOnlineConnector
$credential = Get-Credential
$session = New-CsOnlineSession -Credential $credential
Import-PSSession $session
# Enable enterprise voice for a user
Set-CsPhoneNumberAssignment -Identity user@contoso.com -PhoneNumberType CallingPlan
In the above example, you first need to connect to Skype for Business Online using the SkypeOnlineConnector module. Then, you can use the Set-CsPhoneNumberAssignment
cmdlet to enable enterprise voice for a specific user by specifying the user's identity (e.g., user@contoso.com) and the desired phone number type (e.g., CallingPlan).
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.