When an Expression Rule of type UserLogin or UserLogout calls a Groovy script, the script is provided with the implicit object 'user'. This example shows how the user object can be used.
This Expression Rule calls the 'LogUser' script to add the user to the platform log file:
Type: UserLogin
IF: true
THEN: ExecuteCustomObject("LogUser")
The Groovy script 'LogUser' uses the user object to retrieve the user's last name, which is logged:

