User Activity

on selecting a field on a form I am not able to check the value of the calculated field to true and am not able to write a script also any solution help and give suggestion
i want to call script include in filter , how to do this ? pls provide the solution 
SCRIPT INCLUDE--- CLIENT SCRIPT--- on change ci field var ga = new GlideAjax('ourInccallerDetails');   ga.addParam('sysparm_name','getOurIncCiDetails');   ga.addParam('sysparm_ourCi',g_form.getValue('u_configuration_item'));   ga.getXMLAnswer(getCIde...
 var grUser=new GlideRecord('sys_user');  grUser.addQuery('sys_id','6816f79cc0a8016401c5a33be04be441');  grUser.query();  if(grUser.next())  {    g_form.setValue('u_email',grUser.email);    g_form.setValue('u_location',grUser.location);    g_form.set...
var grUser=new GlideRecord('sys_user');grUser.query();while(grUser.next()){gs.print(grUser.email);} i run it in background script of PDI but on running i got not authorized as output pls help me to corrected error