My current config is completely failing when I try to reference an existing Genesys Cloud user resource by name using the genesyscloud_user data source. I am automating role assignments via the Terraform provider, but the lookup fails during the plan phase. I know the user exists because I can see them in the portal, and the name string matches exactly. The provider seems to be making a request that returns a 404, even though the resource is clearly there.
data "genesyscloud_user" "existing_lead" {
name = "John Doe"
}
resource "genesyscloud_user_roles" "assign_roles" {
user_id = data.genesyscloud_user.existing_lead.id
roles = ["gen_api_user"]
}
Note: The name attribute must match the user’s display name exactly as it appears in the Genesys Cloud administration portal.
I have verified the spelling. Is the underlying API call case-sensitive? Does the provider only search active users? I need to know if I should switch to looking up by email or if there is a known bug with name-based resolution in the current provider version.