Voice Routing Policy cannot be deleted

Camille Fuerte 0 Reputation points
2023-04-24T15:55:34.51+00:00

Hello all, I have been trying to delete a voice routing policy but whatever I do it cannot be deleted. I have made sure that no user is assigned this policy but the error message is still: The policy "Direct Routing" is currently assigned to one or more users. You must assign a different policy to those users before you can delete this policy. I have tried the following commands in powershell and ensured that there are no users assigned the policy in question because sometimes in the Teams admin center it might not show everyone in the tenant.

get-csonlineuser | select-object userprincipalname, onlinevoiceroutingpolicy | export-csv -path c:\VoiceRouting.csv

get-csonlineuser -filter {onlinevoiceroutingpolicy -eq 'direct routing'} I have also tried deleting the policy in powershell using this command, Remove-CsOnlineVoiceRoutingPolicy -Identity "Direct Routing" but I still cannot delete the policy in question. I have had this problem for a month now so I'm not to sure what the problem could be. Any help would be appreciated :)

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,627 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SokiGuo-MSFT 25,751 Reputation points Microsoft Vendor
    2023-04-25T05:33:05.19+00:00

    Hi @Camile Fuerte

    The policy "Direct Routing" is currently assigned to one or more users. You must assign a different policy to those users before you can delete this policy.

    Based on the error message, you need to find out who is assigned to this policy and change their policy to a different policy before you can delete it.

    For more information about using PowerShell to manage call routing policies, refer to:

    Set-CsOnlineVoiceRoutingPolicy. and Grant-CsOnlineVoiceRoutingPolicy.

    Hope this helps! Moreover, if the above is not your scenario or I have misunderstood anything, please correct me and provide us with detailed information about the issue including the screenshot so that we can better understand to further assist you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.