SumoLogic / terraform-provider-sumologic

Terraform provider for Sumo Logic
https://www.terraform.io/docs/providers/sumologic/
Mozilla Public License 2.0
40 stars 57 forks source link

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

Open fishfacemcgee opened 4 months ago

fishfacemcgee commented 4 months ago

I changed a user from

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

to

resource "sumologic_user" "jdoe" {
  first_name  = "John"
  last_name   = "Doe"
  email       = "john.doe@example.com"
  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.