Teams LineURI

Eunodio Gomez 1 Reputation point
2021-05-02T04:53:16.697+00:00

Hi,

My question is how can I fill the LineURI and Onprem LineURI using teams powershell, I can't find the right command for this, I tried:

SetCSuserOnline, SetCSuser, SetCSvoiceuser without success

For example Set-CSOnlineUser -Identity "user@keyman .com" -OnpremLineURI "tel: +#####"

My company use Onprem phone numbers assigned from the carrier using audio codes devices to route the calls to PSTN and PSTN to Teams

Please can you guide me on this

Thanks in advance

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,083 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pedro Petersen 171 Reputation points
    2021-05-03T20:11:13.597+00:00

    Hello @Eunodio Gomez

    The command to configure the OnPremLineURI is:

    Set-CsUser -Identity username@keyman .com -OnPremLineURI "tel:+xxxxxxxxxxx"

    If you are receiving an error trying this way, please share the error with us.
    Please also share the MicrosoftTeams Module version you are using.
    To find the version, please run Get-Module on your PowerShell and find the MicrosoftTeams line on the list.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.