Hi all,
I am attempting to use the following expressions user(loggedInUser(), "username") to retrieve the username of the currently logged in user. The expression is being used in a script task within a process model. When I run the process the expression returns Administrator instead of the actual username. When I test this expression as an expression rule however it returns my actual username. Any insight into the discrepancy would be greatly appreciated.
Discussion posts and replies are publicly visible
Yes as Stefan notes, this is expected. Instead, you can simply use:
=loggedinuser()
I have attempted this as well and I get the same functionality. The function simply returns "Administrator".
In a process there is no logged in user. What is your goal? Know who executed the process? This is stored in pv!initiator.
Thank you! That makes sense and I have gotten things working. I appreciate your time and assistance.