Hey team,
We just upgraded our Genesys Cloud CX as Code provider to version 1.35.0 and our WFM user provisioning pipeline broke immediately. It looks like there was a breaking change in the genesyscloud_user resource schema regarding how email addresses are handled.
In v1.34.x, we had a separate email argument. Now it seems to be part of a nested email_address block or just removed entirely in favor of the attributes. When I run terraform plan, I get this error:
Error: Unsupported argument
on users.tf line 12, in resource "genesyscloud_user" "wfm_agent":
12: email = "agent@example.com"
An argument named "email" is not expected here.
I tried commenting out the email line and letting it pull from the name or division_id, but then the user creation fails with a 400 Bad Request saying the email is required. The docs for 1.35.0 are pretty light on this specific migration step.
Is there a new way to inject the email address during user creation, or do I need to use a Data Action post-creation to patch the email? I don’t want to rewrite all our 500+ user resources if I don’t have to.
Here is a snippet of what I was using before: