terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

Changing a user's email address doesn't force a resource recreation and falsely succeeds

Open fishfacemcgee opened this issue 1 year ago • 0 comments

I changed a user from

resource "sumologic_user" "jdoe" {
  first_name  = "John"
  last_name   = "Doe"
  email       = "[email protected]"
  transfer_to = ""
  role_ids    = [sumologic_role.example-production.id]
  is_active   = true
}

to

resource "sumologic_user" "jdoe" {
  first_name  = "John"
  last_name   = "Doe"
  email       = "[email protected]"
  transfer_to = ""
  role_ids    = [sumologic_role.example-production.id]
  is_active   = true
}

The provider showed that as an in-place change, Terraform claimed to apply it successfully, but then the change was not made. As I can see in the web console's user settings, email addresses cannot be changed on existing users. Attempting to change a user's email address should either delete and recreate the user, or it should fail since the email address was unchanged.

fishfacemcgee avatar Jul 11 '24 18:07 fishfacemcgee