# How can I bulk remap/update user email addresses?

**URL:** <https://meta.discourse.org/t/how-can-i-bulk-remap-update-user-email-addresses/56519>\
**Category:** Product Support\
**Created:** [28 Janeiro , 2017 15:56 UTC](https://meta.discourse.org/t/how-can-i-bulk-remap-update-user-email-addresses/56519 "2017-01-28T15:56:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [29 Janeiro , 2017 06:44 UTC](https://meta.discourse.org/t/how-can-i-bulk-remap-update-user-email-addresses/56519/6 "2017-01-29T06:44:35Z")

</div>

> [@harveywun](#):
>
> The problem is I tried to change my domain from [forum.mysite.co](http://forum.mysite.co) to forum.mysite.com.au (all staff members are on user@mysite.com.au email address).

> [@harveywun](#):
>
> since we were trying to migrate from [site.co](http://site.co) to site.com.au. It ‘replaced’ the string pattern in our login emails.

Can you please let me know the _exact command_ you ran to remap `forum.mysite.co` to `forum.mysite.com.au` ?

I can easily create a new rake task which will batch remap/update user email address from `user@mysite.com.aum.au` to `user@mysite.com.au` but first I want to know the root cause of how this happened, to prevent it from happening in future.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-bulk-remap-update-user-email-addresses/56519)._
