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

Hello Nag, we have seen this already.

Can you share the logs of script include?

Go to system logs (filter by last 15 minutes).

Then open the newly created ticket. then go to logs and check the output of the logs and share that.

find_real_file.png

 

 

Okay, understood.
I think in your client script, you are passing userID instead of USERname.
In client script, replace this line

ga.addParam('sysparm_userID', g_user.userID);

WITH

ga.addParam('sysparm_userID', g_user.userName);

We should change the lines in both the scripts

Nope, only cleint script. No change in scriptinclude.