K2 User Login Audit

  • 15 September 2021
  • 2 replies
  • 42 views

Badge +4

I need to know if there is a way I can get a log of the times when a user logged into K2. The clients are using ADFS to authenticate. Does K2 store such information in the Identity or related Tables ? Thanks


2 replies

Userlevel 2
Badge +10

Hi JPG079,


Maybe you can take a look at the Audit Report from Management site. It s


https://help.nintex.com/en-US/k2five/userguide/5.4/default.htm#K2-Management-Site/Licenses/Licenses.htm?Highlight=audit%20log


 

A simple way is write a rule that loads when the form initializes. The rule should query your database table by executing a smart object method "list" using the input parameter value as current user logged in and the output should be the number of times the user logged in. An expression would need to increment that value and save it back to the table with the new number. If no value exists and its first log in, it should create in the database and write the user name from system current user and the expression for number of times logged in by incrementing to 1. Thats the easiest way OOB

Reply