User Session History

Hello. Is there any way to get user session history? I found a admin rest API but this one only gets current active sessions. I want to get all sessions(active/inactive).

thanks in advance

There is no history of sessions kept in keycloak. You might be able to put it together yourself by building an EventListener extension and storing the events that would allow you to store a record of sessions for each user.

1 Like