Terraform data source lookup failing on Genesys Cloud user name uniqueness

Quick question about using Terraform data sources to reference existing Genesys Cloud resources by name. I am maintaining a disaster recovery pipeline where I need to dynamically resolve user IDs based on their display names to attach them to specific routing configurations. My goal is to avoid hardcoding IDs in the state file, which causes drift issues during automated backups and restores.

I am using the genesyscloud_user data source with the name attribute. The documentation suggests this should work for unique lookups, but I am hitting a wall when multiple users share similar names or when the search is not exact.

Here is the relevant Terraform snippet:

data "genesyscloud_user" "target_agent" {
 name = "John Doe"
}

resource "genesyscloud_routing_queue" "example" {
 name = "Support Queue"
 # ... other config ...
 members {
 user_id = data.genesyscloud_user.target_agent.id
 }
}

When I run terraform plan, the provider throws a validation error because it cannot determine a single unique resource. The error is:

Error: Multiple data sources matched the query. Please refine the search criteria to return a single result.

I have tried appending the email address to the name string in the data source block, but that fails because the name attribute only matches the display name, not the email. I also attempted to use the genesyscloud_user resource with import blocks, but that defeats the purpose of dynamic resolution in my CI/CD pipeline.

Is there a way to filter by both name and email in the data source? Or should I be hitting the /api/v2/users endpoint directly via a http data source and parsing the JSON response to find the correct ID? I want to stick to the official provider if possible for consistency, but I am open to workarounds if the provider limitations are strict.