Get a consumer with credential and group state
get_consumerRetrieve a Kong consumer's credential counts and ACL groups to separate 401 authentication failures from 403 authorization failures when one client fails.
Instructions
Retrieves one Kong consumer together with what it can actually authenticate and authorize with: how many credentials of each type it holds, and which ACL groups it belongs to.
USE WHEN: a specific client is failing while others succeed, or you need to distinguish a 401 from a 403. The two have different causes and this tool separates them:
no credential of the type the route requires -> 401, authentication fails
credential present but wrong ACL group -> 403, authorization fails
RETURNS: consumer (ref, username, customId), credentialCounts per credential type, and
aclGroups.
SECURITY: credential COUNTS only. Key values, passwords and secrets are never returned by this tool and are not available through any tool in this server.
LIMITATIONS: does not say which routes the consumer may reach -- that depends on the plugins on each route. Pair with list_plugins_for_route, or use diagnose_route with a consumer name to have both sides checked together.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| consumer | Yes | Consumer username, id, or `consumer:<username>` reference. Example: "partner-integration" or "consumer:partner-integration". |