There is a requirement to store the LastLogonTimestamp value into an ARS VA. When using the OnPostModify the function, the following exception pops up:
"At line: 11 char:4, Exception calling "SetInfo" with "0" argument(s): "The 'Script Execution' policy encountered an error when running the script 'ShowLastLogon'"

The Active Roles Administration service logs below exception:

However using function onPostModify or onPostMove this issue cannot be reproduced.
onPreModify event handler sometimes causes infinite loop when used in a script.
Status:
Defect request #645810 has been raised to resolve the onPreModify issue. This defect has been assigned to our Active Roles Product team for consideration of inclusion within a future release of Active Roles.
Workaround:
Use a different type of event handler function or call the script from an ARS Workflow script activity.
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center