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

 no its not working, If i put state =3  in ritm form its working,

 

but task is coming from different table(SC_TASK) i want when this task sets closed complete the variables should be read only mode

On which table have you written this onload script? 

In your client script, onload at the beginning, mention this line and tell me the output?

g_form.addInfoMessage(g_form.getValue("state"));

Client script is running on sc_re_item table

 

here is the out put

find_real_file.png

I assume you meant sc_req_item.

If it is displaying 1, then it means that the state is NOT closed complete. It is in OPEN. Hence the code is not working. 

So open any closed complete task and check and let me know.

Attached is the screenshot of the state values as per my dev instance. 

find_real_file.png

Asif u didn't under stand my question.

See the below screen, once this task sets closed complete

find_real_file.png

 

Below variables tab shroud be goes read only mode

 

find_real_file.png