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,

As per your earlier script output, the task is NOT Closed Complete. So obviously the code will not work.

So check for any closed complete task and let me know if the code did not work.

And secondly since you wrote the client script onload, if the task is completed now, then the variables goes into read-only mode on next onload. 

Let me know if the variables are not going into readonly if the task is closed complete.

I raised a ticket and changes the task state closed complete, Again reloaded the same ritm but no luck still its editable

 

if i change state(sc_req_item) value to closed complete in ritm form its working, becoz the code is running on requested item table

So once the catalog task is closed complete, you want the variables in RITM form to be read only?

yes asif, finally u get my point

🙂

Can you tell me the business case behind this?

Generally in SN, for a RITM, there could be more than 1 catalog task.So given this scenario, what if the RITM has mutliple catalog tasks? When do you want to make variables readonly? When all associated catalog tasks are closed, then the RITM will be closed complete automatically. 

When RITM is closed automatically, then as per my latest code given, the variables in RITM will become readonly.

Also, as requested earlier, can you mark my other comment(s) as helpful.