get_user
Retrieve detailed user information by exact username (email) from Keycloak, including whitelisted attributes while blocking credential keys.
Instructions
Get detailed user information by exact username (email).
If KEYCLOAK_USER_ATTRIBUTE_WHITELIST names any custom attribute keys, this
also does one extra by-ID lookup and appends whichever of those keys are
present on the user (the search endpoint used to resolve the username
returns a brief representation that omits attributes entirely). A
whitelisted key whose name looks credential-shaped (contains "password",
"secret", "token", etc. — see _looks_like_credential_key) is reported as
blocked rather than shown, as a safety net on top of the whitelist itself.
Args: username: Exact username (e.g., user@example.com).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |