WordPress allows multiple users with different roles, including Administrators who have full control over the website. If you need to list all Administrator users on your WordPress site, you can do so through the dashboard or using WP-CLI.

Method 1: Using the WordPress Dashboard (Easiest)

  1. Log in to your WordPress Dashboard.
  2. Navigate to Users > All Users.
  3. In the Role dropdown filter, select Administrator.
  4. Click the Filter button to display all users with Administrator privileges.

Method 2: Using WP-CLI

For advanced users with SSH access, WP-CLI provides a quick way to list Administrators

  1. Access your DomainsFoundry WordPress hosting service via SSH or using Terminal
  2. Navigate to the directory your WordPress install is in. Usually, public_html
  3. Run the following command:
    wp user list --role=administrator

This will output a list of Administrator users along with their user IDs and emails.

Security Considerations

  • Always ensure that only trusted individuals have Administrator roles.
  • If you notice unauthorized Administrators, remove them immediately and update passwords.
  • Consider using a security plugin to monitor user activity and role changes.