Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

I would like delete the multiple users in the user table ,By the background script

Hari Babu
Mega Expert

Hi Friends,

I would like delete the multiple users in the  user table ,By the background script 

Can you please share me the script .

 

Regards,

Jagadeesh

1 ACCEPTED SOLUTION

Hari Babu
Mega Expert

Tq Guys , for your support,

 

 

 

Regards,

Jagadeesh

View solution in original post

7 REPLIES 7

Raj68
Mega Guru

Hi Jagadeesh,

Please go through below code may be it will help you:


var gr = new GlideRecord('sys_user');
gr.query();
while (gr.next()) {

gr.deleteMultiple();

}


NOTE: Mark correct or helpful if it helps you.

 

 

Warm Regards,

Raj patel

Raj68
Mega Guru

Hi Jagadeesh,

 

Please mark CORRECT  if my solution help you to achieve your requirement.

 

 

Thank you,

Raj Patel

Hari Babu
Mega Expert

Tq Guys , for your support,

 

 

 

Regards,

Jagadeesh