# Additional email address per user account support

**URL:** https://meta.discourse.org/t/additional-email-address-per-user-account-support/59847
**Category:** Feature
**Created:** [March 24, 2017, 2:14pm UTC](https://meta.discourse.org/t/additional-email-address-per-user-account-support/59847 "2017-03-24T14:14:41Z")
**Posts on this page:** 1
**Showing post:** 54

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [February 4, 2020, 1:20am UTC](https://meta.discourse.org/t/additional-email-address-per-user-account-support/59847/54 "2020-02-04T01:20:46Z")

</div>

Hi Leon! This procedure is certainly not for the faint of heart and it looks like you’re on the right path. It’s definitely true that there’s some UX that would be handy here to manage the primary and secondary email addresses of users.This link might help you - it helped me!

> [@Rake task for merging users](https://meta.discourse.org/t/rake-task-for-merging-users/89086/33):
>
> Sure, this can be done in the rails console within the container. rails c # restrict to secondary emails, just in case you try to delete the wrong email UserEmail.where(email: "foo@example.com", primary: false).destroy\_all # probably not needed, but better safe than sorry EmailToken.where(email: "foo@example.com").destroy\_all

---

_[View the full topic](https://meta.discourse.org/t/additional-email-address-per-user-account-support/59847)._
