× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Please no vendor plugs as I am wishing to resolve this on my own.

I can easily retrieve user profiles with elevated privileges from qsys2.user_info.
To see whether or not all use of that user profile is audited I can join that to object_statistics.

I want to find out all jobs which use that user profile. So even if a job like 148345/QUSER/QRWTSRVR is using one of these user profiles I want to know about it.
So I guess what I need to do is
1: Determine the users with elevated privileges.
2: If not already done then CHGOBJAUD OBJ(...) OBJTYPE(*USRPRF) OBJAUD(*ALL)
Once I've done this then later on I can do something like:
SELECT journal_code, journal_entry_type, "CURRENT_USER", "JOB_NAME", "JOB_USER", "JOB_NUMBER",
PROGRAM_NAME, PROGRAM_LIBRARY, PATH_NAME, OBJECT, OBJECT_TYPE, REMOTE_ADDRESS, REMOTE_PORT
FROM TABLE (QSYS2.Display_Journal(
JOURNAL_LIBRARY => 'QSYS',
JOURNAL_NAME => 'QAUDJRN',
STARTING_RECEIVER_LIBRARY => 'QGPL',
STARTING_RECEIVER_NAME => '*CURCHAIN',
STARTING_TIMESTAMP => CURRENT TIMESTAMP - 7 DAYS
)) X
WHERE OBJECT_TYPE = '*USRPRF'
and journal_entry_type<>'ZC'; -- Don't want to know about password changes, etc

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.