user function returns administrator

Certified Senior Developer

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