Microsoft Teams – Assigning phone numbers to user account

Using Legacy Skye for Business Portal

  1. Log into Microsoft teams admin center
  2. Click Legacy portal

  3. From the menu, Click Voice
  4. Click Voice Users tab
  5. Find your active user and select Change under the Assigned Number pane

  6. Enter the phone number and press Save

 

Using Powershell

  1. Download and install the module from the link Skype for Business PowerShell provided.
  2. Run Windows Powershell with administrator permissions
  3. Once installed, you must import the module by entering the command below to PowerShell and then pressing enter;

    Import-Module SkypeOnlineConnector
  4. If you receive an error, run the following command. Then try step 3 again.
    Set-ExecutionPolicy -ExecutionPolicy Unrestricted
  5. Connect to your Office365 instance.  You will be prompted for global administrator credentials.

    $session = New-CsOnlineSession -Verbose
  6. Import the session
    Import-PSSession $session -Verbose -AllowClobber
  7. Run the Set-CSUser command with the correct email account and telephone number.

    Set-CsUser -Identity "testuser@testdomain.com" -EnterpriseVoiceEnabled $true -HostedVoiceMail $false -OnPremLineURI "tel:+613XXXXXXXX"
    
    
    Set-CsUserPstnSettings -Identity "testuser@testdomain.com" -AllowInternationalCalls $true -HybridPSTNSite $null


    Please ensure that the user has been assigned a phone system license before attempting this step.