# Replace user emails

**URL:** https://meta.discourse.org/t/replace-user-emails/112441
**Category:** Support
**Created:** [March 24, 2019, 8:46am UTC](https://meta.discourse.org/t/replace-user-emails/112441 "2019-03-24T08:46:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [March 24, 2019, 8:46am UTC](https://meta.discourse.org/t/replace-user-emails/112441/1 "2019-03-24T08:46:46Z")

</div>

Is there a way to replace user’s email address as admin?

I have a user with Primary email, that is not working anymore (but it seems he still uses it for linked Facebook account login), while he has Secondary email that is correct (and was used for login once, before accounts were merged).

Is it possible to replace (switch) emails, sop that notification emails will again work (using Primary email)?

Will Facebook/Google login still work with email in Secondary emails?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [March 24, 2019, 11:53am UTC](https://meta.discourse.org/t/replace-user-emails/112441/3 "2019-03-24T11:53:36Z")

</div>

As an admin, You can visit the user’s profile and then go to preferences tab to edit the email id.

This will send a verification email to their new email and as soon as they verify, they’ll be able to receive all notifications to new email.

---

<div class="post-metadata">

### Author: ![Lure](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lure/32/130462_2.png) [@Lure](https://meta.discourse.org/u/Lure)
#### Post date: [March 24, 2019, 12:49pm UTC](https://meta.discourse.org/t/replace-user-emails/112441/4 "2019-03-24T12:49:01Z")

</div>

OK, but this will then overwrite his alternative email address, that he still uses for Facebook login. So there is no way to edit Secondary emails?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [March 24, 2019, 1:05pm UTC](https://meta.discourse.org/t/replace-user-emails/112441/5 "2019-03-24T13:05:23Z")

</div>

You can do it from rails console, I’m on the move rn so can’t find exact command but a quick search on forum will help.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 18, 2022, 4:11pm UTC](https://meta.discourse.org/t/replace-user-emails/112441/7 "2022-05-18T16:11:39Z")

</div>


