Is there a way to easily merge user accounts?

Hi everyone, I recently did a new install of ghost and restored from a set of backups. What I noticed is that I have a few users with the same name now, but different slugs. Is there a way to merge users together in Ghost?

  • What version of Ghost are you using?
    Running version 3.4.0

It’s not possible via the admin, but it can be done with the Admin API. You could get all the posts assigned to an author and use their ID to rewrite the author value using api.pages.browse(… api.pages.edit(…:

Note that the Admin API mirrors some of the features shown in the Content API, hence the second link.

Let us know how you get on, and whether you need more help with using the Admin API :slight_smile: