A small tip I noticed in my direct routing deployments, something that I’m now used to but the first time it threw me so I thought I’d mention it. You’re setting up your voice routes, usages, and policy for Teams using the Skype for Business Online PowerShell module. You’re following a blog or guide, maybe this one: https://docs.microsoft.com/en-us/microsoftteams/direct-routing-configure#enable-users-for-direct-routing-service
When you attempt to run Grant-CsOnlinevoiceRoutingPolicy on a policy you just created, you receive the following error:
Policy “Policy Name” is not a user policy. You can assign only a user policy to a specific user.
+ CategoryInfo : NotSpecified: (:) [Grant-CsOnlineVoiceRoutingPolicy], ManagementException
+ FullyQualifiedErrorId : Microsoft.Rtc.Management.AD.ManagementException,Microsoft.Rtc.Management.AD.Cmdlets.Assi
ement.ADConnect, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bfasdf56ad364e35]]
+ PSComputerName : admin1a.online.lync.com
What does it mean its “not a user policy”?!?! “You can assign only a user policy to a specific user”, you are! You know it’s a user policy, you literally just created it. You can see that it’s a user policy. What gives?
You’re moving too fast, this is Office 365. Go get a cup of coffee or a beverage of choice, check your social media, think about what you want to eat next, then try again (the order is important). It should work now, if it doesn’t repeat the above steps with a new beverage.
If you’re me, you’ll forget the next time too and need to check your notes. Hope this helped.