Your prompt

Audit the user accounts on my site. Make sure no account is called “admin”, every administrator has a strong password, and remove anyone who no longer needs access.

What this prompt does

This prompt asks your AI assistant to audit the user accounts on your site against three rules: nobody uses the username admin, every administrator has a strong password, and people who no longer need access are removed. Old and weak accounts are a common way into a site, so a short audit pays off.

A caution about wording: your assistant may be unable to see existing passwords, because WordPress stores them hashed. In practice the strong-password rule usually means forcing resets or asking people to set new ones, rather than reading what is there.

The title says install, but the prompt is really about account hygiene right after setup, and it is worth repeating periodically.

Before you run it

Removing and renaming accounts affects real people, so go slowly.

  • Take a full backup first, including the database.
  • Make sure you can log in yourself with an administrator account you control and have tested.
  • Decide who owns the content before deleting a user. WordPress asks what to do with a deleted user’s posts, and you should choose to reassign them rather than delete them.
  • Ask the assistant to list proposed changes and wait for your approval before it deletes anything.

What to check afterwards

  • Users > All Users shows no account with the username admin.
  • Every administrator is a person you recognise.
  • Former staff and old contractors are gone or downgraded to a lower role.
  • Posts from removed users now belong to someone else.
  • You can still log in and so can the people you meant to keep.

Ways to adapt it

  • Downgrade instead of delete: Change anyone I do not recognise to the Subscriber role and list them for me.
  • Add a role check: Tell me which users are administrators but have never published anything.
  • Include a security step: Recommend turning on two-factor authentication for every administrator.

If it goes wrong

  • The username cannot be changed in place. WordPress does not allow editing usernames, so create a new administrator, log in as it, and reassign content before removing the old one.
  • Someone is locked out. Use the password reset link from the login screen, or ask the assistant to send reset emails.
  • Posts disappeared with a deleted user. Restore the backup and repeat, choosing to reassign content this time.

For the reasoning behind roles, see user roles and least privilege, and setting up two-factor authentication is the natural next step.

← Every prompt on WPMusk

SponsoredNibWP

Stop clicking. Start telling.

Ask your AI to build pages, fix speed and nail SEO, and NibWP does it on your WordPress site in minutes.

Try NibWP.com

Get the WPMusk Sunday brief

One email a week with our newest tutorials, honest tool reviews and resources you won’t find on the blog. No spam, unsubscribe in one click.

Newsletter (Sunday brief)