Creates a value list where the display value is the User Name, and the store value is the UserUID.
var myUsers = security.getUsers() var displays = new Array() var uids = new Array() for(var i=1 ; i<=myUsers.getMaxRowIndex() ; i++) { displays[i-1] = myUsers.getValue(i, 2) uids[i-1] = security.getUserUID(displays[i-1]) } application.setValueListItems("vl_users", displays, uids)