I’m trying to import an existing Genesys Cloud user into my Terraform state using the official provider, but the import command keeps bombing out with a 404. I’ve verified the user exists in the portal and the ID matches what I’m passing to terraform import. The error trace shows the provider is hitting GET /api/v2/users/{id} and getting a 404 Not Found, which is weird because I can curl that exact endpoint with my OAuth token and get the JSON back fine. Here’s the snippet I’m using for the resource:
resource "genesyscloud_user" "_test" {
name = "Js Mason"
email = "@example.com"
division_name = "Default"
phone_numbers = []
}
When I run terraform import genesyscloud_user._test 12345-67890-abcde, it fails immediately. I’ve checked the logs and the provider seems to be using a different auth context or maybe the wrong base URL. I’m in the us-east-1 region, so the endpoint should be correct. I’ve also tried specifying the division ID explicitly in the import command, but that doesn’t change anything. The user is not in any specific division, just the default one. Is there a known issue with the provider’s import logic for users that don’t have a custom division? Or am I missing a step in the import process? I’ve looked at the provider docs and they just say to use the resource ID, but that’s clearly not working here.
I’ve also tried importing other resources like queues and flows, and those work fine. It’s just users that are giving me trouble. I’ve checked the Terraform version and it’s the latest, same with the provider. I’ve even tried recreating the user from scratch in the portal to see if that helps, but no luck. The import command just keeps failing with the same 404 error. I’ve also tried using the genesyscloud_user data source to fetch the user first, but that doesn’t help with the import. I’m really stuck here and can’t figure out what’s going wrong. Any ideas? I’ve spent hours on this and it’s driving me crazy. The error message doesn’t give me any more details than the 404, so I’m flying blind here. I’ve also checked the provider’s GitHub issues and haven’t seen anyone else with this problem. Maybe it’s something specific to my setup? I’m using Terraform Cloud for state management, but that shouldn’t matter for the import command. I’ve also tried running the import locally with a backend file, but same result. I’m really out of ideas here.