ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Get the user logged in and rpg

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get the user logged in and rpg

    Hello all,
    For auditing, i need to retrive the logged in users and wich program they are in is it possible to do it with an api? It would be great to retrive also the opened records...

    Thanx in advance

  • #2
    Re: Get the user logged in and rpg

    You could write initial signon program and attach to profile....this could write login/out times to table.
    or just pull this from the QHST logs..
    Turn on auditing (security) and I believe you could list by user what tables the touched, not sure about
    programs called. But this information is available from wrkactjob.

    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Get the user logged in and rpg

      the initial program would be the best way to ensure that you get the proper info...but it might be doable with the Open List of Jobs (QGYOLJOB) API (and subsequent list APIs) + Retrieve Call Stack (QWVRCSTK) API. but the initial program would be more reliable.
      I'm not anti-social, I just don't like people -Tommy Holden

      Comment


      • #4
        Re: Get the user logged in and rpg

        Bear in mind that the initial program is executed ONLY for a Green Screen sign on. There are lots of ways to call a program other that from a green screen. And most of these jobs are run by "servers" so the job is not appear to run under the user profile.
        Denny

        If authority was mass, stupidity would be gravity.

        Comment

        Working...
        X