[rules-users] How to call a function in when statement?