Hey everyone, I’ve run into a really strange issue with the Genesys Cloud Terraform provider upgrade from v1.34 to v1.35.0. My Electron desktop app’s CI/CD pipeline uses Terraform to provision test users via the genesyscloud_user resource. Previously, omitting the email attribute worked fine for internal-only users, but v1.35.0 now throws a validation error: Attribute "email" is required. This contradicts the Genesys Docs which state email is optional for non-external users.
Here is the failing configuration:
resource "genesyscloud_user" "test_agent" {
name = "Test Agent"
username = "test.agent"
# email = "[email protected]"
division_id = var.default_division_id
}
The terraform plan fails immediately with Error: expected email to be set, got nil. I suspect this is a breaking change in the schema validation logic rather than an API change, as the REST API /api/v2/users still accepts users without emails if routing_email_address isn’t specified. Is there a workaround to suppress this validation without hardcoding dummy emails, or do I need to pin the provider version?