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.