diff --git a/metabase/resource_user.go b/metabase/resource_user.go index e31a041..35dbd96 100644 --- a/metabase/resource_user.go +++ b/metabase/resource_user.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "log" - "strconv" "terraform-provider-metabase/client" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -71,7 +70,7 @@ func resourceUserUpdate(_ context.Context, d *schema.ResourceData, meta interfac return diags } - d.SetId(strconv.Itoa(updated.Id)) + d.SetId(updated.Email) if err := d.Set("first_name", updated.FirstName); err != nil { return diag.FromErr(err) }