Terraform data source lookup failing with 'Resource not found' despite correct name

Trying to reference an existing Genesys Cloud user via a Terraform data source instead of hardcoding the ID. The user exists in the org, name matches exactly.

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

Running terraform plan throws:

Error: Resource not found
 on main.tf line 1, in data "genesyscloud_user" "test_user":
 1: data "genesyscloud_user" "test_user" {

Checked the API directly. GET /api/v2/users/search?name=John+Doe returns the user just fine. Status 200. Payload has the ID.

Is the provider case-sensitive? Or is there a delay in the data source lookup? I’ve tried adding email as well but same error. No docs mention this specific failure mode for data sources.

The genesyscloud_user data source actually requires the email attribute, not name, because names aren’t unique in Genesys Cloud.

data "genesyscloud_user" "test_user" {
 email = "john.doe@example.com"
}

Check the vider docs; it’s right there in the required fields section.