9

I have two users and I would like to merge then into one.

All the answers I could find online to this question focus on transferring ownership of posts, but this is a network site and I need to transfer permissions and roles as well.

Is there an easy way to do this?

  • Just delete one of them - WordPress will ask if you want to attribute their posts and links to another user. – TheDeadMedic Apr 10 '15 at 13:30
  • That doesn't transfer permissions or roles. – Dancrumb Apr 10 '15 at 13:31
  • Which roles/capabilities does each user currently have? – TheDeadMedic Apr 10 '15 at 13:37
  • Write permissions on different sites in the network. User defined roles on various sites. – Dancrumb Apr 10 '15 at 13:40
  • Sounds like you'd need some (possibly complex) logic to parse permissions. WordPress won't do this for you, so id say that no there isn't an easy way. – s_ha_dum Apr 10 '15 at 13:42
2

Generally speaking I agree with most of the other answers but, if for some reason you really had to merge two accounts here is how that could work.

Merging User-B into User-A

  1. Reassign all of User-B's content to User-A
  2. Determine the highest privilege of User-B
  3. If higher than the privileges of User-A elevate User-A's privileges else do nothing.
  4. If you have extended the WordPress's native users account you'll want to add that logic here too.
  5. Delete User-B and do some clean up.
  • Sounds good to me :-) Thank you so much for the step-by-step approach... – Gwyneth Llewelyn Oct 18 '19 at 20:12
0

No, you cannot merge two users. What you can actually do is add the new user then transfer all the posts to him.

When you add the new user you can define his rule. In your case the new user should be an 'Admin'. Thus he will have access to all the contents as well as rights for everything. Moreover this simple process is also very easy to perform

0

What's easy to do is transferring posts of a user to another user. I think you can just simply delete it and transfer everything to an existing user. But user roles… I'm not sure why you'll have to transfer that to another user. Can't you just simple create another user with the same permiossions and merge the posts of both?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.