Change ownership of all posts by a specific user


(Arpit Jalan) #1

Want to change ownership of all the posts by a specific user? Let’s do it!

Access Your Site

First connect to your Droplet via SSH, and enter the Docker container for your Discourse instances:

cd /var/discourse
./launcher enter app

Change ownership of all public posts

rake users:change_post_ownership["old_username","new_username"]

The above command will transfer ownership of all public topics/posts by @old_username to @new_username.

Change ownership of all private posts

rake users:change_post_ownership["old_username","new_username",private]

The above command will transfer ownership of all private messages (topics/posts) by @old_username to @new_username.


Can't reset password for just one user
Changing ownership of posts leaves negative posts count
Ability to merge users
Change all posts by user to wiki
Digest email not to be sent to new users
Can't reset password for just one user
Bulk changing topic ownership in Admin
Can't reset password for just one user