how to find non admin user in service now

Nag9
Tera Expert

How to find non admin user in servicenow, he must have permissions to raise Ritm

1 ACCEPTED SOLUTION

Can you add the log statement  in the script include after this line and tell me the log output.

     var thisUser = gs.getUser().getUserByID(userID);

gs.log("Group name is "+groupName+"----"+userID);

 

View solution in original post

93 REPLIES 93

So check in the log and see you should have got one of these logs as well

gs.log("Returned true becuase user is member of this group"); 

OR

gs.log("Returned false because user is not a member of this group"); 

im getting both the logs

Hi Nag, 1 time you get only 1 statement.

Can you reload again and check the output and then also check the output on the client script and share both the logs and the info messages output.

 

Is it working now for both new and existing tickets?

client script output

find_real_file.png

 

Same output coming 

find_real_file.png

find_real_file.png

 

These to logs are coming for script include