Changing a user's email address doesn't force a resource recreation and falsely succeeds
fishfacemcgee opened this issue · 0 comments
fishfacemcgee commented
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.