client_sessions
Retrieve active sessions for a Keycloak client by internal ID; returns paginated session list with truncation indicator.
Instructions
[READ] Active user sessions on one client (Keycloak).
KEYCLOAK ONLY. authentik has no per-provider session listing, so on an authentik target this returns {"error": "Resource 'client_sessions' is not mapped for platform 'authentik'..."}. That is a platform-capability answer, not a fault: switch approach (user_sessions per user) rather than retrying or reporting the tool as broken.
Args: client_id: Internal id, from list_clients. max_results: Page bound (default 200). target: IdP target name from config; omit for the default.
Returns {"sessions": [...], "returned": N, "limit": L, "truncated": bool}, with truncated measured rather than guessed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| client_id | Yes | ||
| max_results | No |