get_user_sessions
Retrieve active user sessions with a specified user ID and optional realm from the mcp-keycloak server to monitor access and manage authentication.
Instructions
Get active sessions for a user.
Args:
user_id: The user's ID
realm: Target realm (uses default if not specified)
Returns:
List of active sessions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
realm | No | ||
user_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"user_id": {
"title": "User Id",
"type": "string"
}
},
"required": [
"user_id"
],
"title": "get_user_sessionsArguments",
"type": "object"
}