Users daily login report

Hi,

Sorry if something I will write sounds weird but I’m a rookie here. A client with Keycloak associated to a FNI (Fixed Networks Insights) cofiguration wants to get a daily login report for all users with their names and group names from “User and Role Management > Administration Console”.

Is this possible? If so, how can be done (with detailed steps if possible)?

Thank you.

Keycloak doesn’t provide such a report out of the box. However, it would be possible to collect the data for such a report using Keycloak’s event listener SPI. You would need to implement such a custom extension, and use it to tabulate and store the report data on those events.

1 Like

Besides implementing a custom event listener, you can enable to save the events to the Keycloak database (in realm settings → events → user events). Then, you can run some sql queries to gather date desired data from the Keycloak database. Be aware, that running additional database queries might have some impact on the performance of Keycloak.

1 Like