Enable Users

Enable users for Direct Routing



Connect to SfBO using PowerShell


import-module SkypeOnlineConnector
$credential = Get-Credential -username "admin@shoey.example" -message "Login details for admin@shoey.example"
$session = New-CsOnlineSession -Credential $credential
Import-PSSession -Session $session -AllowClobber



Enable the users


Set-CsUser  -Identity "adelev@shoey.example" `
            -EnterpriseVoiceEnabled $true `
            -HostedVoiceMail $true `
            -OnPremLineURI tel:61770101349 



Assign Voice Routing Policy to User


Grant-CsOnlineVoiceRoutingPolicy -Identity "adelev@shoey.example" `
            -PolicyName "Australia"