Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Unmasked Password

Community Alums
Not applicable

Hello Team,

 

I have Requirement  to visible password for user of sys_user table . I have Written Background script  .

 

var gr = new GlideRecord("sys_user");
gr.addQuery("sys_id", '4b663359db2ae20050abf2adbf9619bb');
gr.query();
if (gr.next())
{
gs.print(gr.variables.v_masked);
}
 
ooo_0-1705045597002.png

It showing Undefined plz let me know , how we can visible this password with background script or any other way 

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Can you explain your question a bit more? I just see in your script "variables.v_masked", though that's nothing, unless you created something?

 

So please explain.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Community Alums
Not applicable

Hello @Mark Roethof   

 

I just want to know the password of user in sys_user table for testing purpose , is der any way to find whatever password we are updating sys_user table is correct or not .

ooo_0-1705046042458.png

 

 

Please Advise.

 

Ah oke, because your script was doing something with variables.v_masked. What was your intention with that? Or did you found that somewhere on google?

 

Anyway, what you are now describing: not possible.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Rahul Talreja
Mega Sage

Hi @Community Alums ,

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul