On this page
- Key takeaways
- What are the five default WordPress user roles?
- Why does least privilege matter for WordPress user roles?
- How do I audit WordPress users in the dashboard and database?
- What does a hidden admin look like?
- How do I remove an unknown admin so it stays gone?
- What the evidence does not tell you
- When should you get help with a rogue admin?
- Frequently asked questions
WordPress user roles are sets of permissions that decide what each account can do on your site. A rogue admin is an Administrator account you did not create, and on a single site that role has access to all administration features. Spot one by comparing your user list against the people who should have access, in the dashboard and the database, then remove it only after you find what created it.
This article covers the default roles, why giving people the lowest role they need matters, how to audit users, and what a hidden admin looks like. If you already suspect a break-in, our hacked site repair service handles the cleanup.
Key takeaways
- A role is a set of capabilities. On a single site WordPress has five default roles: Administrator, Editor, Author, Contributor and Subscriber.
- Only Administrators can do things like install plugins and edit users, so an unknown Administrator is the most serious account you can find.
- Unexpected new users are a listed sign of compromise in the WordPress.org “My site was hacked” FAQ.
- A hidden admin can be recreated automatically, so deleting the account without finding its source often fails.
What are the five default WordPress user roles?
On a single site, the five default roles are Administrator, Editor, Author, Contributor and Subscriber. The WordPress.org documentation (last modified September 2, 2026) describes them as follows, and we paraphrase here.
| Role | What it can do |
|---|---|
| Administrator | Access to all administration features within a single site |
| Editor | Publish and manage posts, including those of other users |
| Author | Publish and manage their own posts |
| Contributor | Write and manage their own posts, but not publish them |
| Subscriber | Manage their own profile only |
The developer handbook defines a role as “a set of capabilities for a user” and shows code that checks a capability such as edit_posts, not a role name. That is why wordpress user roles and capabilities are worth learning together: the role is only a bundle, and the capability is what is actually checked. Note that the handbook page was last updated in November 2022.
The documentation also lists a sixth role, Super Admin, but it exists only on multisite networks. This article counts five because most small business sites are single installs. The docs list edit_users and install_plugins as capabilities that single-site Administrators have, and on multisite only the Super Admin has them. Either way, the developer docs list six including Super Admin.

Why does least privilege matter for WordPress user roles?
Least privilege means giving each account only the access its job needs, so a stolen or abused account can do less damage. WordPress.org does not use that phrase, and we did not find an official page that tells site owners to assign the lowest role needed. The argument rests on what the role descriptions and the hardening guide say.
The Hardening WordPress guide (last updated October 14, 2026) warns that a hacker who gains access to an administrator account is able to install malicious scripts. Because Administrators can install plugins and edit users, every extra Administrator is another account that could be used that way.
Applying that reasoning, here is how we would assign roles. This is our recommendation, not an official rule:
- Guest writer: Contributor, so someone else reviews and publishes their work.
- Regular staff writer: Author, if they should publish their own posts.
- Content manager or SEO contractor who edits other people’s posts: Editor.
- Customers or members: Subscriber.
- Administrator: the owner and one trusted technical contact, and no one else by default.
The hardening guide also advises avoiding easily guessed usernames such as admin or webmaster, and enabling two-step authentication as an additional measure.
How do I audit WordPress users in the dashboard and database?
Start in the dashboard, then check from the command line or database, because a hidden account may not appear in the dashboard at all.
In the dashboard
Open Users and review every account with the Administrator role. For each one, ask whether you know the person, whether the email address is theirs, and whether they still need that level of access. Demote anyone who does not need it. Also check the role counts at the top of the list, as the next section explains.
With WP-CLI
If your host gives you command-line access, the WP-CLI handbook documents this command:
wp user list --role=administrator --format=csv
The default fields include ID, user_login, display_name, user_email, user_registered and roles. The registration date is useful: compare it with the date you first noticed symptoms. Roles are not included when you use the --network flag.
In the database
The WordPress.org hacked-site FAQ (last updated July 26, 2026) says you can reach the database through phpMyAdmin or Adminer and work with the wp_users table. It does not give a query for listing administrators by role, and we did not find an official page that does. A practical check is to compare the accounts in wp_users with what the dashboard shows. An account in the table that is missing from the Users screen deserves immediate attention.
What does a hidden admin look like?
A hidden admin is an Administrator account that has been filtered out of the normal user screens, so you cannot see it where you would expect to. Sucuri, a security vendor that also sells cleanup and firewall services, documented one example on July 29, 2025. This is vendor-reported, and it describes a single case.
In that case a fake plugin at wp-content/plugins/wp-compat/wp-compat.php did several things:
- On every page load it checked for a user named “adminbackup” and created it if missing.
- If the user existed with a different email, it reset the password and set the email to adminbackup@wordpress.org.
- It used multiple WordPress hooks to filter the user out of admin user listings and adjust role counts.
- It blocked editing or deleting the account and hid itself from the Plugins menu.
- It stored a database option named
_pre_user_id.
The username will vary from attack to attack, so do not search only for that name. The lasting lessons are that a hidden account can be recreated automatically, can disguise the user count, and can sit behind a plugin that does not appear in your plugin list. A count that does not match what you can see, or an account you cannot edit, is a reason to look at files and the database, not just the dashboard.
The WordPress.org FAQ lists “creation of new users” among the indicators of compromise, so a new account you did not make is worth treating as an incident. Our guide on how to check if your WordPress site is hacked covers the other signs.
How do I remove an unknown admin so it stays gone?
Find what created the account before you delete it, then remove the cause, the account and every credential in that order. Deleting only the user can fail if something recreates it on the next page load.
- Record the username, email and registration date.
- Look for the source, such as unused or unfamiliar plugins and unexpected files. Sucuri advises deleting unused plugins and updating WordPress and all plugins.
- Delete the administrator you do not recognize.
- Force a password reset for all users, especially administrators, as the WordPress.org FAQ recommends.
- Change passwords for FTP/SFTP, WP-ADMIN, your hosting control panel and MySQL. The FAQ also says to change the database user and password and update
wp-config.php.
The FAQ says to change those credentials again once the site is confirmed clean. If you cannot find the source, a rogue admin is often one symptom of a deeper problem, such as a backdoor. See how to find and remove a WordPress backdoor and our hacked site checklist.

What the evidence does not tell you
We did not find a study with a stated method on how common rogue admins are, so we do not quote a figure. The Sucuri case is one documented example, and other hiding methods exist that we could not verify from reliable sources. WordPress.org does not document a database query for listing administrators, and the hardening guide does not use the term least privilege.
Atgler has worked with WordPress for 7 years and has built, managed and maintained more than 600 sites. On infected sites we use one standard cleanup procedure: it removes malware, rebuilds core from clean files and patches the vulnerabilities it can identify. We scan by comparing file checksums against clean WordPress files. We do not promise to prove how a site was hacked, since weak passwords, outdated plugins and themes, file manager plugins and weak SSH credentials are all common causes. For broader data, see our WordPress security statistics post.
When should you get help with a rogue admin?
Get help if you find an Administrator you cannot explain, if the account returns after deletion, or if the dashboard user count does not match the database. A thorough cleanup takes at least 8 hours of work, and hard cases such as sites on old deprecated themes can take up to 50. Our hacked site repair is a flat fee of $149 Standard (48 hr) or $249 Priority (24 hr), with a 30-day re-hack guarantee. To keep users, plugins and updates under control afterward, website care plans start from $99 a month.
Not sure what to install? See which WordPress security plugin fits your site.
Frequently asked questions
How do I find out whether my WordPress site has a hidden administrator?
Compare the Users screen with the database and with a WP-CLI list of administrators. If counts differ, or an account appears in one place but not the other, treat it as suspicious.
Why does the Users screen show fewer administrators than the database?
Sucuri documented a fake plugin that used multiple hooks to filter its account out of admin user listings and adjust role counts. Other causes are possible, so check files and plugins.
Which role should I give a freelancer or guest writer?
Give the lowest role that covers the work. A guest writer who should not publish fits Contributor, and someone who manages other people’s posts fits Editor.
What should I do first if I find an unknown admin account?
Record its details, then look for what created it before deleting it. After removal, reset passwords for all users and for hosting, FTP/SFTP and MySQL.
Does the Super Admin role apply to my site?
Only if you run a multisite network. On a single site the default roles are Administrator, Editor, Author, Contributor and Subscriber.
Sources
- WordPress.org Documentation: Roles and Capabilities (last modified September 2, 2026)
- WordPress.org Support: FAQ: My site was hacked (last updated July 26, 2026)
- WordPress Developer Resources: Hardening WordPress (last updated October 14, 2026)
- WP-CLI Handbook: wp user list (no date shown)
- Sucuri Blog: Unauthorized Admin User Created via Disguised WordPress Plugin (July 29, 2025, vendor-reported)
- WordPress Developer Resources: Roles and Capabilities (Plugin Handbook) (last updated November 17, 2022)

