2. Go to the Livelink Administration pages using the ?func=admin.index URL extension.
3. In the "System Administration" section, click the "Administer Event Auditing" hyperlink.
4. Click the "Query Audit Log" hyperlink.
5. In the "Target Items" section, select "By Type" and choose "User or Group" from the associated dropdown list..
6. In the "Event Type" section choose "Delete"
7. Click the "Submit Query" button.
Here are the basics for both Oracle andSQL Server. You can add bells and whistles as you need fairly easily based onthese core SQL statements:
ORACLE:
/* USERS WHO HAVENOT LOGGED IN FOR THE PAST 190 DAYS */SELECT FIRSTNAME, LASTNAME, NAMEFROM KUAF WHERE TYPE = 0 AND DELETED = 0 AND ID NOT IN(SELECT PERFORMERID FROM DAUDITNEW WHERE AUDITSTR = 'Login' AND AUDITDATE >CURRENT_DATE – 190)
/* USERS WHO HAVEBEEN DELETED AND WHEN */SELECT * FROM DAUDITNEWWHERE AUDITSTR = 'Delete' AND USERID IN (SELECT ID FROM KUAF WHERE DELETED = 1AND TYPE = 0)
SQL Server:
/* USERS WHO HAVENOT LOGGED IN FOR THE PAST 190 DAYS */SELECT FIRSTNAME, LASTNAME, NAMEFROM KUAF WHERE TYPE = 0 AND DELETED = 0 AND ID NOT IN(SELECT PERFORMERID FROM DAUDITNEW WHERE AUDITSTR = 'Login' AND AUDITDATE > GETDATE()– 190)
From: eLinkDiscussion: Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Tuesday, June 05, 2007 10:34AMTo: eLink RecipientSubject: RE RE Auto-Delete UsersWho Haven't Logged in for > 190 Days
RE RE Auto-Delete Users Who Haven't Logged in for > 190 Days
Posted by amecas01user4 (Venkataramani, Srini) on 06/05/2007 01:33 PM
In reply to: RE Auto-Delete Users Who Haven't Logged in for > 190 Days
Posted by stephenfisher (Fisher, Stephen J) on 06/05/2007 01:21 PM
Message from Venkataramani, Srini <srini.venkataramani@ameristar.com> via eLink We have SQL that is very similar to Robert's also. However, this SQL does not work in v9.5. I noticed that they have a dauditnew table (not sure if that was added in 9.5). Does anyone have the SQL to get the users that have not logged in the last n days FOR v9.5 SP1? Also, is there a way to find out when a user was deleted? I could not find a "deleted_date" field anywhere. Thanks! Srini -----Original Message----- From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Tuesday, June 05, 2007 10:22 AM To: eLink Recipient Subject: RE Auto-Delete Users Who Haven't Logged in for > 190 Days RE Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by Fisher, Stephen J on 06/05/2007 01:21 PM Message from Fisher, Stephen <sfisher@hatch.ca> via eLink Where possible, I would avoid doing any kind of user management straight in SQL. A Delete is more then just a 1 or 0 + the word 'Delete'. On that note - I did want something to 'Delete' disabled users in the system so rather then using SQL, I created a VBS script that used XMLHTTP to click the 'Delete User' button effectively for each user returned via a SQL Statement. So - you could just alter the SQL in this VBS and potentially run it do accomplish the same thing (note - the Provider is SQL Server and it used single sign on - you will need to change this to be appropriate for your DB). This is a true 'Delete'. To re-create these users, you should really create new logins - not 'undelete' them. -----Original Message----- From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: June 5, 2007 8:35 AM To: eLink Recipient Subject: Auto-Delete Users Who Haven't Logged in for > 190 Days Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by Anderson, Robert on 06/05/2007 08:13 AM Right now, we have a report that brings up every user that hasn't logged in for 190 days: select k.id, k.name, k.lastname, k.firstname, g.name groupname from livelink.kuaf k, livelink.kuaf g, ( ( SELECT kuaf.id kid FROM livelink.kuaf kuaf, livelink.dtree dtree WHERE kuaf.id = dtree.userid AND dtree.subtype = 142 AND kuaf.userpwd IS NOT NULL AND kuaf.deleted = 0 AND dtree.createdate < sysdate-190 ) MINUS ( select userid kid from (SELECT da.userid userid, max(da.auditdate) maxdate FROM livelink.daudit da WHERE da.event = 'LOGIN' GROUP BY da.userid ) where maxdate > sysdate - 190 ) ) badkuaf where badkuaf.kid=k.id and k.groupid=g.id and k.name not like ('bl%%') order by g.name, k.name We also have an undelete user report: update KUAF set NAME = substr(NAME,1,instr(NAME,'(Delete)',1)-2),DELETED=0 where ID = %1 Which I have changed into a delete user report: update KUAF set NAME = CONCAT(NAME," (Delete)"),DELETED=1 where ID = %1 What I want to do is somehow combine the two, but all I've gotten are sql errors. Any suggestions? We're running 9.2 (unfortunately). [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 to unsubscribe.livereportsdiscussion@elinkkc.opentext.com. [To reply to this thread, use your normal E-mail reply function.] ============================================================ Attachment link: UserCleanupUtil.txt https://knowledge.opentext.com/knowledge/llisapi.dll/open/12475610 ============================================================ Topic: Auto-Delete Users Who Haven't Logged in for > 190 Days https://knowledge.opentext.com/knowledge/llisapi.dll/open/12473635 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 to unsubscribe.livereportsdiscussion@elinkkc.opentext.com.
Best Regards,Harald Lange--------------------------------------------------------Harald Lange ShareNet-IMS Consulting & DevelopmentCFO IT OP Mgmt & Support Applicat. SDE Nokia Siemens Networks GmbH & Co. KGPhone: +49 89 722 23024Mailto:Harald.Lange@nsn.com--------------------------------------------------------
Von: ext eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Gesendet: Dienstag, 5. Juni 2007 19:34An: eLink RecipientBetreff: RE RE Auto-Delete Users Who Haven't Logged in for > 190 Days RE RE Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by amecas01user4 (Venkataramani, Srini) on 06/05/2007 01:33 PM In reply to: RE Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by stephenfisher (Fisher, Stephen J) on 06/05/2007 01:21 PM Message from Venkataramani, Srini <srini.venkataramani@ameristar.com> via eLinkWe have SQL that is very similar to Robert's also. However, this SQL does not work in v9.5. I noticed that they have a dauditnew table (not sure if that was added in 9.5). Does anyone have the SQL to get the users that have not logged in the last n days FOR v9.5 SP1? Also, is there a way to find out when a user was deleted? I could not find a "deleted_date" field anywhere. Thanks! Srini -----Original Message----- From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Tuesday, June 05, 2007 10:22 AM To: eLink Recipient Subject: RE Auto-Delete Users Who Haven't Logged in for > 190 Days RE Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by Fisher, Stephen J on 06/05/2007 01:21 PM Message from Fisher, Stephen <sfisher@hatch.ca> via eLink Where possible, I would avoid doing any kind of user management straight in SQL. A Delete is more then just a 1 or 0 + the word 'Delete'. On that note - I did want something to 'Delete' disabled users in the system so rather then using SQL, I created a VBS script that used XMLHTTP to click the 'Delete User' button effectively for each user returned via a SQL Statement. So - you could just alter the SQL in this VBS and potentially run it do accomplish the same thing (note - the Provider is SQL Server and it used single sign on - you will need to change this to be appropriate for your DB). This is a true 'Delete'. To re-create these users, you should really create new logins - not 'undelete' them. -----Original Message----- From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: June 5, 2007 8:35 AM To: eLink Recipient Subject: Auto-Delete Users Who Haven't Logged in for > 190 Days Auto-Delete Users Who Haven't Logged in for > 190 Days Posted by Anderson, Robert on 06/05/2007 08:13 AM Right now, we have a report that brings up every user that hasn't logged in for 190 days: select k.id, k.name, k.lastname, k.firstname, g.name groupname from livelink.kuaf k, livelink.kuaf g, ( ( SELECT kuaf.id kid FROM livelink.kuaf kuaf, livelink.dtree dtree WHERE kuaf.id = dtree.userid AND dtree.subtype = 142 AND kuaf.userpwd IS NOT NULL AND kuaf.deleted = 0 AND dtree.createdate < sysdate-190 ) MINUS ( select userid kid from (SELECT da.userid userid, max(da.auditdate) maxdate FROM livelink.daudit da WHERE da.event = 'LOGIN' GROUP BY da.userid ) where maxdate > sysdate - 190 ) ) badkuaf where badkuaf.kid=k.id and k.groupid=g.id and k.name not like ('bl%%') order by g.name, k.name We also have an undelete user report: update KUAF set NAME = substr(NAME,1,instr(NAME,'(Delete)',1)-2),DELETED=0 where ID = %1 Which I have changed into a delete user report: update KUAF set NAME = CONCAT(NAME," (Delete)"),DELETED=1 where ID = %1 What I want to do is somehow combine the two, but all I've gotten are sql errors. Any suggestions? We're running 9.2 (unfortunately). [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 to unsubscribe.livereportsdiscussion@elinkkc.opentext.com. [To reply to this thread, use your normal E-mail reply function.] ============================================================ Attachment link: UserCleanupUtil.txt https://knowledge.opentext.com/knowledge/llisapi.dll/open/12475610 ============================================================ Topic: Auto-Delete Users Who Haven't Logged in for > 190 Days https://knowledge.opentext.com/knowledge/llisapi.dll/open/12473635 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 to unsubscribe.livereportsdiscussion@elinkkc.opentext.com.
[This is just for testing if my postings still arrive as user "elink" even if my email adress has been updated meanwhile.]Best Regards,Harald Lange--------------------------------------------------------Harald Lange ShareNet-IMS Consulting & DevelopmentCFO IT OP Mgmt & Support Applicat. SDE Nokia Siemens Networks GmbH & Co. KGPhone: +49 89 722 23024Mailto:Harald.Lange@nsn.com--------------------------------------------------------