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.


Changing ownership of posts leaves negative posts count
Can't reset password for just one user
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
#5

Is there a way to change ownership of a single post?


(Vinoth Kannan) #6

Go to the post admin menu then click the “Change Ownership”.


#7

But there’s no such option though :dizzy_face: (i’m just staff, not admin – is that the issue here?):

image


(Vinoth Kannan) #8

Yes. You should contact site admins to do it.