Just upgraded our CX as Code pipeline to the latest provider version (1.35.0) and the genesyscloud_user resource is blowing up during plan. The docs mention a schema update for user attributes, but the error output isn’t super clear on what’s missing or malformed.
Here’s the relevant block:
resource "genesyscloud_user" "agent_1" {
name = "Test Agent"
email = "test.agent@example.com"
username = "test.agent"
division_id = var.support_division_id
attributes = {
"custom.agent.level" = "senior"
}
}
Running terraform plan throws this:
Error: Unsupported attribute
on main.tf line 15, in resource "genesyscloud_user" "agent_1":
15: attributes = {
This object does not have an attribute named "attributes".
I’ve tried a few things:
- Downgraded to 1.34.2 and the plan passes fine. So it’s definitely tied to this release.
- Checked the release notes for 1.35.0. It mentions “refactored user resource schema” but doesn’t list the breaking changes explicitly for custom attributes.
- Tried moving the attributes into a separate
genesyscloud_user_attributeresource, but that resource doesn’t seem to exist in the provider docs. - Verified the API directly via Postman. The PUT /api/v2/users/{userId} still accepts
attributesin the JSON body just fine.
Is there a new way to map custom attributes in this version? Or is this a known bug in the provider code? The SDK examples I’m looking at don’t seem to have been updated yet either.
terraform version: 1.5.7
provider version: 1.35.0
os: macOS 14.2