Predictive Routing Queue Assignment Failing for Teams Direct Routing Endpoints

The predictive routing engine keeps rejecting outbound assignments for our Teams direct routing endpoints. Console throws QUEUE_ASSIGNMENT_FAILED with error code PR_403_SCOPE_MISMATCH when the flow attempts to route to the SBC pool. It’s configured exactly as outlined in the Microsoft documentation here, and the PowerShell validation script confirms the SIP trunk is healthy.

Architect uses a standard predictive routing step, but the payload sent to /api/v2/predictiverouting/assignments returns a 403. It’s not a token scope issue. The SBC config aligns with the BYOC guidelines, yet presence sync drops to Away right before the assignment triggers.

{
 "routing_type": "predictive",
 "queue_id": "8f3a2c1d-44b2-9e81-c70d-5f1a2b3c4d5e",
 "target_endpoint": "teams_direct_routing",
 "error": "PR_403_SCOPE_MISMATCH"
}

Running the assignment retry logic just loops the same error. The SBC logs show the INVITE never reaches the Microsoft edge. The retry loop doesn’t help. It spins doing jack all. Checking the OAuth client permissions now.