How to: delete default admin user in multisite
How to: delete default admin user in Multisite
As a Multisite user I have struggled with removing the admin rights of the first admin/user created as well as to delete/remove that user. Unfortunately WordPress does not allow you to change your username, and in case of the user Admin everyone trying to hack into your site is going to try that right off the bat. So then what are your options? One would be deleting that user so that your new super admin has a name no one knows of (word of advice, never publish something with that username… otherwise they will figure that out) or option two: Limit that user’s rights as much as possible so in case it is compromised they are simply a subscriber and can’t do any harm on your site.
So getting back on topic… How can you delete the default admin in a Multisite installation?
Well, for some people seems that option two is their only real choice, but sometimes it actually allows you to delete this user but you need to follow a set of steps to ensure it will allow you and you won’t lock yourself out of WordPress:
- Create a backup! Db and Filesystem, but mostly the database. You are sort of about to mess with WordPress and you know it doesn’t like it.
-
Create your new SuperAdmin. Make sure you assign Super Admin rights to it.
- Change the network email account to your new SuperAdmin email. If for some reason you want to keep that email address just do this temporarily.
- For your old admin transfer the posts it owns to another user. Or leave the user with Contributor rights so you can transfer them when you delete the user.
- Log out (really important)
- Log back in with your NEW super admin account
- Remove the rights for each site for your old admin account
- Remove the super admin rights on the network site for your old super admin. You can’t do this for the account you are currently logged in.
- Once you’ve done that then proceed back to the Network Admin users page and proceed to delete your old admin account.
- If clicking Delete won’t work, then select the checkbox and then on bulk actions select delete and proceed. It should ask you to transfer the posts to another user.
- You’re done! Hopefully we didn’t break anything. If you did hopefully you did your backup as I mentioned on step 1.
Let me know if this works or if you get stuck. Good luck!
Love
Can we use Let's Encrypt, the free and open certificate authority?
Hola! gracias por la info, me sirvió el comando sacandole el nombre del server. En mi caso, fue una migración…
Yes 3rd option helped me too. I removed the WC key Values from config file then started working.
I know this is from 2014. But really, thank you!