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

Yes returning false only, if i raised the ritm as non admin variables tab shows as editable.

 

if close the window and open again the same ritm the variables tab is in read only mode.

 

But my concern is why its not happening at the time of raised ticket

The question is,

When you are raising a ticket, What is the output do you see in the client script

vs

What is the output you see when you opened an existing ticket?

Can you paste both the outputs here to understand once?

Below is the existing ticket out put

 below is the newly raised ticket output

 

If i again open the same newly raised ticket the variables tab goes to read only  mode

IF you notice, For new ticket, the script include output is not coming at all.

Can you go to system logs and check what the logs says (last 15 minutes) when you open the new ticket.

You shoudl get following script logs

     gs.log("Enered into the if condition of my script include");
        gs.log("Returned true becuase user is member of this group"); 

Also, when you open a newly raised ticket,

Do you have assignment group already set? because you are passing g_form.setValue('assignment_group') in the on load function?