How to determine which user launched the process from the web-application?

kershov
kershov New Altair Community Member
edited November 5 in Community Q&A

Hello!

How to determine which user launched the process from the application?

Tagged:

Best Answer

  • Edin_Klapic
    Edin_Klapic New Altair Community Member
    Answer ✓

    Hi kershov,

     

    ok, so you are referring to the Web Apps.

    So let's say there is a user who changes a value in a settings component which then leads to a execution of a process. And you want to capture this user, right?

    In this case Scotts proposal is the best way to go.

     

    For testing you could use the Operator Print to Console and enter the macro %{_ra_user}. When this process is executed the user who executes this process is printed to the log file (i.e. server.log).

     

    Best,

    Edin

Answers

  • sgenzer
    sgenzer
    Altair Employee

    Hello - all user actions are recorded in the log files in RM Server.  Unfortunately the log files are rather verbose but you should be able to find what you need.

     

    Scott

  • Edin_Klapic
    Edin_Klapic New Altair Community Member

    Hi kershov,

     

    the Process scheduler in the Web interface displays some information (see screenshot).

    image.png

     

     Hope this helps.

     

    Best,

    Edin

     

     

  • kershov
    kershov New Altair Community Member

    Hello, Edin! Thanks for response!

    But if you run process from web application, you will not see any running processes in Process-Scheduler.

  • sgenzer
    sgenzer
    Altair Employee

    hi...another option is to use the logging features to create your own user log.  The user can be read in Studio as the macro "_ra_user" and then use the "Provide Macro as Log Value" operator to add it to the log.  I have used this method in the past as it allows me to customize what exactly I want to log (user, timestamp, etc) and put it where I can easily access it later.

     

    Scott

  • Edin_Klapic
    Edin_Klapic New Altair Community Member
    Answer ✓

    Hi kershov,

     

    ok, so you are referring to the Web Apps.

    So let's say there is a user who changes a value in a settings component which then leads to a execution of a process. And you want to capture this user, right?

    In this case Scotts proposal is the best way to go.

     

    For testing you could use the Operator Print to Console and enter the macro %{_ra_user}. When this process is executed the user who executes this process is printed to the log file (i.e. server.log).

     

    Best,

    Edin

  • kershov
    kershov New Altair Community Member

    Works great! Thnx!