recording the number of logins to the system

1
Implementation of a way of recording the number of logins to the system. I want a way of recording the number of logins per month, so I can create a report showing the number of users of the system each month. Any ideas of how this can be done?
asked
2 answers
5

Another option is to make a scheduled event and execute it for example every hour. Retrieve all users by the lastlogin attribute of the system.user entity and aggregate it. Place the 'count' in a custom entity.

$OneHourAgo = addHours([%CurrentDateTime%], -1)

xpath

[LastLogin >= $OneHourAgo][LastLogin < $CurrentDatetime]

This way you can keep up with how many users have logged at least once in the preceding hour.

answered
0

You can use the after signin microflow to update your login count.

answered