I’m trying to bring our existing Genesys Cloud users under Terraform management using the genesyscloud provider. The goal is to stop manual changes in the UI and enforce state via code. I have a simple resource "genesyscloud_user" block defined in my main.tf file.
When I run terraform import genesyscloud_user.test_user <user-id>, it fails immediately with a 404 Not Found error from the API. This is confusing because I can see the user in the UI and the ID is definitely correct. I’ve checked the logs and the provider seems to be querying the /api/v2/users/<user-id> endpoint correctly.
Here is the resource definition:
resource "genesyscloud_user" "test_user" {
name = "Test User"
email = "test@example.com"
phone_number_type = "work"
phone_number = "+1234567890"
}
The error message says:
Error: Error importing existing resource genesyscloud_user.test_user: ...
404 Not Found
I’ve tried adding the division_id to the import command like terraform import genesyscloud_user.test_user <user-id>:<division-id>, but that didn’t change anything. Is there a specific format for the import ID that I’m missing? The docs are a bit sparse on this.