user_sessions
Review a user's active identity provider sessions to audit access or troubleshoot login issues, with session IDs, IP addresses, start/last access times, and clients.
Instructions
[READ] A user's active sessions (id, IP, start/last access, clients).
Args: user_id: User id, from list_users. target: IdP target name from config; omit for the default.
Returns {"sessions": [...], "returned": N, "truncated": false} — the IdP returns the user's whole session set, so this listing is always complete.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>"
},
"name": "user_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| user_id | Yes | ||
| max_results | No |