From f573dfd4aad0df5490746bcc6cdadb79581dd7f8 Mon Sep 17 00:00:00 2001 From: OB Date: Tue, 1 Jul 2025 15:15:14 +0530 Subject: [PATCH] Add: create IFS_User_Log_In_(IEE_Client).sql for logging user login actions with timestamps --- .../IFS_User_Log_In_(IEE_Client).sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 REPORTS/OBHOISTLK/IFS_User_Log_In_(IEE_Client).sql diff --git a/REPORTS/OBHOISTLK/IFS_User_Log_In_(IEE_Client).sql b/REPORTS/OBHOISTLK/IFS_User_Log_In_(IEE_Client).sql new file mode 100644 index 0000000..c3a5d6a --- /dev/null +++ b/REPORTS/OBHOISTLK/IFS_User_Log_In_(IEE_Client).sql @@ -0,0 +1,21 @@ +SELECT NVL(logat.new_value, logat.old_value) IFS_USER, + ifsapp.Fnd_User_API.Get_Description(NVL(logat.new_value, + logat.old_value)) User_Name, + hist.Username, + + DECODE(history_type, 'Insert', 'Log On', 'Delete', 'Log Off') AS Action, + hist.time_stamp + + FROM ifsapp.history_log_attribute logat, ifsapp.history_log hist + + WHERE hist.log_id = logat.log_id + + AND column_name = 'DIRECTORY_ID' + + AND ifsapp.Report_SYS.Parse_Parameter(NVL(logat.new_value, + logat.old_value), + NVL('&Identity', + '%')) = 'TRUE' + + AND hist.time_stamp >= to_date('&DATE_FROM', 'YYYY-MM-DD') + ORDER BY NVL(logat.new_value, logat.old_value), hist.time_stamp ASC \ No newline at end of file