" /> Last Login Time for supervisor CME users - Genesys CTI User Forum

Author Topic: Last Login Time for supervisor CME users  (Read 6409 times)

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Last Login Time for supervisor CME users
« Reply #15 on: August 08, 2018, 08:57:16 PM »
Advertisement
There is another option for historical reporting that I just thought about (the problem is solved already, but just for a matter of keeping it recorded here):

You could create a Database Trigger that runs after UPDATEs on the table CFG_HDB_LAST_LOGIN and save the data of the new values on a customized table. That way, you can record each login of a person, and have control of the retention rules.

Offline zwerg82

  • Newbie
  • *
  • Posts: 30
  • Karma: 2
Re: Last Login Time for supervisor CME users
« Reply #16 on: August 09, 2018, 05:18:15 AM »
I thought of triggers too, but if you have both solutions enabled, you have:

1. all logins in log db, and you can configure how long you want to store those by defining it in your purge job (cat 2, prio 2)

2. in config db you have the actual last login for every user, which helps to identify „dead“ accounts.

Wouldn’t it make more sense to do the trigger on log db? Especially because it gives you the ip?



Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Last Login Time for supervisor CME users
« Reply #17 on: August 09, 2018, 10:37:04 AM »
I am not sure about the table CFG_HDB_LAST_LOGIN  whether contains all attempts to log into Genesys environment as I saw a few installation where this table was always empty (even the HDB was enabled). So I would not rely on it

Offline zwerg82

  • Newbie
  • *
  • Posts: 30
  • Karma: 2
Re: Last Login Time for supervisor CME users
« Reply #18 on: August 09, 2018, 11:17:03 AM »
At least for me it's tracking all logins for now in a test environment.
If the customers are using CSProxies they have to be configured to sync this information with confserv.

I have to admit , that I like the solution via log db more.

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Last Login Time for supervisor CME users
« Reply #19 on: August 09, 2018, 06:55:27 PM »
[quote author=zwerg82 link=topic=11072.msg50411#msg50411 date=1533813423]
At least for me it's tracking all logins for now in a test environment.
If the customers are using CSProxies they have to be configured to sync this information with confserv.

I have to admit , that I like the solution via log db more.
[/quote]

Just an additional info for that solution, then:

The Log DB does not automatically purge by default. The administrator is reposible for either run the Log DB Maintenance Wizard or create an automated job for purging old data.
In that case, it is interesting to include a "WHERE" clause in order not to delete the records which have the messageid = 22121 or else this historical report would be compromised


Edit: I just realized you have already added that note :)