Can anyone help me stop Global UI script

bcmc01
Kilo Expert

I have a global script preventing from access home page. Can anyone help me.

1 ACCEPTED SOLUTION

Thanks. I got it disabled by running script from another instance




var request = new GlideHTTPRequest('https://devxxxx.service-now.com/api/now/v1/table/sys_ui_script/b88536d80f0322001354943be1050e29');


request.setBasicAuth("admin","admin");


request.addHeader('Accept','application/json');


request.addHeader('Content-Type','application/json');


var response = request.put('{"active":"false"}');


gs.log(response.getStatusCode());


gs.log(response.getBody());


View solution in original post

6 REPLIES 6

vibha13
Kilo Contributor

are you able to stop it?

 

I am getting authentication error on the above script.

Community Alums
Not applicable

I just used it, and it worked fine for me. Did you update the Auth credentials?

You need to replace 'admin' with the username you are logging in with, and the 2nd 'admin' with the password of said user. 

Example:

OLD: request.setBasicAuth("admin","admin");

New: request.setBasicAuth("user1","Password1");