Here's the SQL:
This count will EXCLUDE the users that are placed in the Deleted usersgroup and the users that are Disabled. If you want to include Deleted or the Disabledusers in the count, then comment out those respective AND clauses.
select a.firstname+' '+a.lastname as 'Name', a.mailaddress as 'Email Address',
max(b.auditdate) as 'Last Login Date'
from livelink.kuaf a, livelink.daudit b
where b.event = 'LOGIN'
AND a.id = b.userid
AND deleted = 0
AND GroupID <> 14793243 /* This is the Deleted Users Group.Replace this with the GroupID of the Deleted Users group for that LivelinkInstance */
AND UserPrivileges <> 14 /* This excludes Disabled Users */
group by a.firstname, a.lastname, a.mailaddress
HAVING max(b.auditdate) < %1
order by a.lastname asc
-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Monday, August 21, 2006 11:51 AMTo: eLink RecipientSubject: query for created users that habvent logged in in X amount of time
query for created users that habvent logged in in X amount of time
Posted by Developers, Pfizer on 08/21/2006 02:47 PM
We are looking for the following query. A list of users that werecreated in last 3 months that havent logged in. Is this able to be put ina query? Any assitance appreciated.
[To reply to this thread, use your normal E-mail reply function.]
============================================================
Discussion: Livelink LiveReports Discussion
https://knowledge.opentext.com/knowledge/llisapi.dll/open/2249677
Livelink Server:
https://knowledge.opentext.com/knowledge/llisapi.dll
To Unsubscribe from this Discussion, send an e-mail tounsubscribe.livereportsdiscussion@elinkkc.opentext.com.