Issues Removing an admin user
-
I’m doing work on a friend’s site and they want to remove the user associated with their previous developer.
I’m able to delete the user without getting any errors, but when I go back to the user list their user is back again with full admin rights.
Before deleting the user I’d downgraded them to ‘author’ and it didn’t make any difference – the user reappeared as a full admin
What am I missing:?WP.com: Yes
Jetpack: Yes
Correct account: YesThe blog I need help with is: (visible only to moderators and staff)
-
Hi there!
Just to confirm, are you taking the same steps as outlined in this support article about removing a user from a WordPress.com site? Or did you remove them from the wp-admin dashboard only?
Please try these steps and let us know if you’re still unable to remove the user
shubhim21from the site.Thanks!
-
Apologies for the delayed response.
The user I am trying to delete is “webadmin”
Yes I’ve tried following the steps there. I also tried to downgrade their user role from “admin” to “contributor”, but each time I do this I get a confirmation pop up saying the user has been deleted, yet they’re still there.
-
That user does not appear to be managed by the WordPress.com login system. If you look in the classic view you can see it is the only user without a jetpack symbol (green lightning bolt) on the right: https://digitalmedusa.org/wp-admin/users.php
If you remove them in the classic view linked above does that allow you to proceed? Hover over their profile icon and you should see the option appear. Thanks for the additional info!
-
Tried that now – it doesn’t give any error, says the user has been deleted, but of course they haven’t been.
-
Hey there,
Thanks for reaching back out – I can replicate what you’re seeing here, and it’s most unusual.
I’ve some run some tests on a test site and I can’t replicate this behaviour, which make me wonder if this is happening due to a plugin conflict – which is probable.
To find out, I would recommend deactivating plugins, one by one and then seeing if the user deletes after deactivation.
It would help to rule out the problem plugin if there is one, by process of elimination.
I hope this helps as a next troubleshooting steps.
-
I’ve been trying this – disabling plugins one by one and then trying to delete the user.
What I have noticed is that the userid keeps incrementing, which is not normal behaviour. It looks like the user is being recreated with a higher ID
So they went from 210474211 to 210474212 and the ID changes after each attempt to remove them
-
Doing a bit of digging in the MySQL DB was quite revealing:

The creation date is when I last tried to delete the user which confirms my suspicion that something is actively recreating the user each time I try to remove it.
-
Hey there,
It looks like there’s a mystery solved here…
We’ve taken a closer look at the theme, and the code in the Child theme’s functions.php between lines 50-56 is causing this.
You would need to speak to the theme developers, or whoever put that code in to either modify that behaviour, or remove that for you.
I hope this helps!
-
Ah-ha thanks.
I’ll have a look at that code and see if I can comment it out or something, as it’s more than a little nutty that this is happening!
thanks
Michele
- The topic ‘Issues Removing an admin user’ is closed to new replies.