Forum Discussion
Enable Direct Routing for Users - From External Applications
Hello, we have a portal where we can enable specific services for users in our company. Some users should get teams and some not. So the best for us would be if we can enable direct routing in our portal, and with the portal we can use the graph API to do the configuration on teams site for this user (enterprise voice enable and some other settings).
My last information from 2 years ago is, that this is only possible via powershell and not included in graph. Is this still the same?
And is there another option? I also heard about webhooks which could be used for something like this.
Maybe somebody has done this in the past or has some information which is the best option.
Many thanks
Daniel
1 Reply
- Prasad_Das-MSFT
Microsoft
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.