Is there a way to merge accounts?

AI-generated summary

The discussion revolves around merging user accounts on Discourse. SethL asks about changing or merging a Twitter account with a local one. Overmind notes there’s no built-in feature yet, referencing a related meta topic. Purldator shares a script via a gist that may help, which thangngoc89 later confirms they’ve used successfully. Dax mentions a rake task for merging users, with a link to the relevant meta post. Codinghorror adds that merging can now be done via the UI, though caution is advised for large accounts. Rickyfarguson asks about badges and achievements, and JammyDodger confirms that badges, site settings, and stats are transferred during the merge.

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?

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.

This gist might be something that will help with what you want to achieve.

Can you show me how to use that script

I am in the same situation as you. :weary_face: :sweat_smile:
I will be watching that gist to see if the author replies.

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)

Yes, we have a rake task now

This can now also be done through the UI as well.

:warning: Merging large accounts with other large accounts can be quite expensive in database and server time. But when merging two small accounts, or a large account and a small account, you shouldn’t have any problems.

On this, when merging accounts for a user, do badges and achievements move across? Or is it just posts, likes and messages?

I’ve just merged a couple of test users and Badges, site settings, stats, etc are copied over from one to the other. :+1:

Thanks! I managed to merge both accounts for one user and the badges moved across which is an awesome feature