Enable Users

Enable users for Direct Routing



Connect to SfBO using PowerShell


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



Enable the users


Set-CsUser  -Identity "adelev@directrouting.guide" `
            -EnterpriseVoiceEnabled $true `
            -HostedVoiceMail $true `
            -OnPremLineURI tel:61770103000 



Assign Voice Routing Policy to User


Grant-CsOnlineVoiceRoutingPolicy -Identity "adelev@directrouting.guide" `
            -PolicyName "Australia"