Find Out Why a User Can’t Do Something or See a Page with Members and AI
The exact reason a user is blocked, from their roles or the page's restriction, and the smallest fix, with nothing changed.
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.
My WordPress site uses the Members plugin. [The person: their username, email or name] can't [what they tried, for example publish posts, edit products, or see the Members Area page]. Find out why. 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. If I gave a name rather than a username or email, find them with rest_api GET /wp/v2/users with search set to the name and context edit, and ask me which one if several match. Run members/get-user-roles with the user and tell me their roles. 3. If it is something they want to do, find the capability that controls it: run members/list-capabilities (with group, for example type-post, type-page, type-product, plugin or user, when you know which) and pick the one whose label matches, such as edit_pages for editing pages or publish_posts for publishing posts. Run members/check-user-access with the user and that capability. 4. If it is a page or post they can't see, find its ID with rest_api GET /wp/v2/pages with search set to a word from its title and status publish,private,draft,pending,future (or /wp/v2/posts for a post, or the content type's own route for anything else: rest_api GET /wp/v2/types lists them). If it is not published, tell me WordPress's own status is the reason: a private page is seen only by its author and people who can read private pages (administrators and editors by default), and a draft, pending or scheduled one only by people who can edit it, whatever Members says. Run members/check-user-access with the user and post_id, then members/get-content-access with the post_id. 5. Explain the answer in plain words from the why field each ability returns: which role grants it or denies it, whether a deny on another of their roles wins, and whether the content is restricted, or inherits a restriction from a parent page, and to which roles. If Members says it is not restricting the content but something else is blocking it, say so. 6. Give me the smallest fix as a sentence I can ask you later, for example adding a role to the user or a role to the page, and what else that fix would give them. Don't make it.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Find Out Why a User Can’t Do Something or See a Page with Members and AI” recipe from the WPVibe cookbook on my connected site.
Someone on your team can’t publish, can’t edit the products, or can’t see a page that should be open to them. WordPress only tells them they aren’t allowed, and the reason is spread across their roles, each role’s capabilities and the page’s own restriction.
The AI looks the person up through Members and asks it to explain the exact check: which role grants the capability or denies it, whether a deny on one of their roles overrides a grant on another, and whether the page is restricted, or inherits a restriction from its parent page, and to whom. You get the reason in a sentence and the smallest fix, and nothing changes.
Put the person and what they couldn’t do in the prompt. The fix comes back as a sentence you can ask for once you have checked what else it would give them; changes need Read-only mode turned off in Members > Settings > AI (MCP). To restrict a page on purpose, use this recipe.
Outcome
You know why the user is blocked and the one change that would fix it, with nothing changed.