Skip to main content
Cookbook Maintenance Members

Audit Who Can Do What on Your Site with Members and AI

Every role, who has it and which ones carry powerful capabilities, in one read-only report from Members.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running Members 3.3 or newer (tested on 3.3.1, free) on WordPress 6.9 or newer, with an administrator account.

The prompt
My WordPress site uses the Members plugin. Audit who can do what on my site. Don't change anything.

1. Run discover_abilities with category members. If the abilities this needs are not there, stop and tell me to install or update the free Members plugin (3.3 or newer, on WordPress 6.9 or newer). If only some are missing, tell me they may be switched off in Members > Settings > AI (MCP).
2. Run members/list-roles. List each role with its name, slug and number of users, and say which role new users get (default_role). Point out roles with 0 users. Run rest_api GET /wp/v2/plugins with status active: a role with core_role true, or one that comes from a plugin that is still active (its name, slug or capabilities point to it, for example customer and shop_manager from WooCommerce, or student and instructor from LifterLMS), is in use by WordPress or that plugin even with no users, so never suggest deleting it. Only a custom role with 0 users and no active plugin behind it may be left over. Run members/get-role on the default role too: if it is administrator or grants any capability from the list in step 3, put that first in the report, since anyone who registers gets it while registration is open in Settings > General.
3. For every role with at least one user, other than administrator, run members/get-role and check its granted list for these powerful capabilities: manage_options, install_plugins, activate_plugins, update_plugins, delete_plugins, edit_plugins, install_themes, switch_themes, edit_themes, delete_themes, update_themes, edit_theme_options, edit_files, update_core, unfiltered_html, list_users, create_users, edit_users, delete_users, remove_users, promote_users, list_roles, create_roles, edit_roles, delete_roles, restrict_content, manage_woocommerce, import, export. For each role that has any, name them and say in plain words what they let a person do.
4. Run members/list-users-by-role with role administrator and per_page 100 (and page 2 and up while total_pages is larger). List every administrator with username, display name and email, and ask me to confirm each one still needs full control.
5. For each role you flagged in step 3, run members/list-users-by-role with per_page 100 (and page 2 and up while total_pages is larger) and list who has it. Point out users with more than one role.
6. Run members/get-settings. If multi_roles is on, tell me a user gets everything each of their roles grants. If explicit_denied_caps is on, tell me a capability denied by any of their roles is denied.
7. Finish with a short report: who has full control, which roles can do more than their name suggests, which roles are empty, and the three changes you would make first, each as a sentence I can ask you later. Don't make any of them. Say that this covers roles only: a capability given directly to one person's account doesn't show here; members/get-user-roles lists everything one person ends up with, including those.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Audit Who Can Do What on Your Site with Members and AI” recipe from the WPVibe cookbook on my connected site.

Over the years a site collects roles: one from the shop plugin, one from the course plugin, one a developer added for a client. Nobody remembers what each can do, and a custom role that can install plugins looks harmless in the Users list. Checking by hand means opening every role and reading a long list of capability names.

The AI reads every role through Members, counts who has each, and flags the roles people have, and the role new users get, that grant powerful capabilities such as installing plugins, editing users or posting unfiltered HTML. It lists every administrator for you to confirm and explains each finding in plain words. It only reads, so nothing changes, and Members’ read-only mode, on by default, is all it needs.

Paste the prompt and read the report. Each fix comes back as a sentence you can ask for later: changes need Read-only mode turned off in Members > Settings > AI (MCP), and Members tells your AI to ask you before the risky ones. To review and remove administrator accounts, use this recipe.

Outcome

A report of who has full control, which roles can do more than their name suggests and which roles are empty, with nothing changed.