There isn't anything wrong with the script as long as you already have the object vtmrGR defined and u_user_ref returns a sys_id of the user.Did you check on the sys_email table that the email of the user was included? When you cc the email address, ...
You can go to this link and set your scope to "Knowledge Management - Service Portal"https://<YOUR_INSTANCE_NAME>.service-now.com/sp_ng_template.do?sys_id=-1On the widget field, set the value to your custom widgetSet ID = kb-flag-article-modalSet Tem...
Can you try this script below and see if anything is printed/logged
var grArr = groupMembershipQuery();
gs.print("Group Membership Array: " + grArr);
var acArr = activePolicyAcknowledgementInstanceQuery();
gs.print("Active Policy Array: " + acArr);
...
Could you try adding .toString() whenever you pushing a value in the array. So
groupArray = userArray.push(userList.sys_id.toString());
//AND
ackFinalArray = ackArray.push(ackList.assigned_to.toString());