# Is there a way to merge accounts?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431
**Category:** Support
**Created:** [19.Февраль.2015 22:39:22 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431 "2015-02-19T22:39:22Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![SethL](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@SethL](https://meta.discourse.org/u/SethL)
#### Post date: [19.Февраль.2015 22:39:22 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/1 "2015-02-19T22:39:22Z")

</div>

I have a discuorse forum, or rather I am staff of one and I have a Twitter account I no longer use as my login method. Is there a way to change the Twitter account, or merge the account with another, maybe local account?

---

<div class="post-metadata">

### Author: ![Overmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overmind/32/55446_2.png) [@Overmind](https://meta.discourse.org/u/Overmind)
#### Post date: [19.Февраль.2015 23:14:26 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/3 "2015-02-19T23:14:26Z")

</div>

[https://meta.discourse.org/t/ability-to-merge-users/9220](https://meta.discourse.org/t/ability-to-merge-users/9220)

Nothing yet that I see, would be good to be able to at least bulk change ownership of posts / topics like mentioned in that topic. So far there isn’t an easy way to do this that I see.

---

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [21.Февраль.2015 05:10:46 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/4 "2015-02-21T05:10:46Z")

</div>

[This gist might be something that will help with what you want to achieve.](https://gist.github.com/jorgemanrubia/9445948)

---

<div class="post-metadata">

### Author: ![thangngoc89](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thangngoc89/32/115436_2.png) [@thangngoc89](https://meta.discourse.org/u/thangngoc89)
#### Post date: [23.Март.2015 21:33:25 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/5 "2015-03-23T21:33:25Z")

</div>

Can you show me how to use that script

---

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [23.Март.2015 22:28:57 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/6 "2015-03-23T22:28:57Z")

</div>

I am in the same situation as you. 😩 😅  
I will be watching that gist to see if the author replies.

---

<div class="post-metadata">

### Author: ![thangngoc89](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thangngoc89/32/115436_2.png) [@thangngoc89](https://meta.discourse.org/u/thangngoc89)
#### Post date: [23.Март.2015 23:34:32 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/7 "2015-03-23T23:34:32Z")

</div>

Now I know how to use that script. Just copy it to app/lib  
Open rails console and type the last line of that gist (change username)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [20.Сентябрь.2018 10:25:34 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/8 "2018-09-20T10:25:34Z")

</div>



---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [20.Сентябрь.2018 10:34:14 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/9 "2018-09-20T10:34:14Z")

</div>

Yes, we have a rake task now

> [@Rake task for merging users](https://meta.discourse.org/t/rake-task-for-merging-users/89086):
>
> As of [Discourse 2.5.0.beta3](https://meta.discourse.org/t/discourse-2-5-0-beta3-release-notes/148766), site admins can merge non-staff users without needing to access the console. For security, staff users will still need to be merged via the console. Visit the user admin page, and select “Merge” at the bottom of the page. [image] Enter the username you want the account to be merged into, and click “Transfer & Delete @username” to start the merge process. The rake task for merging users is now available on tests-passed. sunny[https://github.com/disco…](https://github.com/discourse/discourse/commit/7a2183e8ab97c26464da541014ba1f2e69669a82)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [20.Май.2021 13:02:03 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/10 "2021-05-20T13:02:03Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20.Май.2021 20:17:20 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/11 "2021-05-20T20:17:20Z")

</div>

Теперь это также можно сделать через интерфейс.

> ⚠ Объединение крупных аккаунтов с другими крупными аккаунтами может потребовать значительных ресурсов базы данных и сервера. Однако при объединении двух небольших аккаунтов или крупного аккаунта с небольшим у вас не должно возникнуть проблем.

---

<div class="post-metadata">

### Author: ![rickyfarguson](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@rickyfarguson](https://meta.discourse.org/u/rickyfarguson)
#### Post date: [13.Июль.2022 12:42:29 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/12 "2022-07-13T12:42:29Z")

</div>

При слиянии аккаунтов пользователя бейджи и достижения переносятся? Или переносятся только посты, лайки и сообщения?

---

<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: [09.Август.2022 09:26:59 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/13 "2022-08-09T09:26:59Z")

</div>

Я только что объединил несколько тестовых пользователей. Значки, настройки сайта, статистика и т.д. были перенесены из одного в другой. 👍

---

<div class="post-metadata">

### Author: ![rickyfarguson](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@rickyfarguson](https://meta.discourse.org/u/rickyfarguson)
#### Post date: [09.Август.2022 09:42:40 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/14 "2022-08-09T09:42:40Z")

</div>

Спасибо! Мне удалось объединить обе учётные записи одного пользователя, и значки перенеслись — это потрясающая функция.

---

<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: [10.Август.2022 07:00:02 UTC](https://meta.discourse.org/t/is-there-a-way-to-merge-accounts/25431/15 "2022-08-10T07:00:02Z")

</div>

Эта тема была автоматически закрыта через 21 час. Новые ответы больше не принимаются.
