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  

How to get current user sys_id using business rule in servicenow now?

nthumma
Giga Guru

I need to current users sys_id using business rule.

any thoughts?

1 ACCEPTED SOLUTION

justin_drysdale
Mega Guru

gs.getUserID() will give you the user's sys_id.



var a = gs.getUserID();


gs.log("user sys_id: " + a);


View solution in original post

1 REPLY 1

justin_drysdale
Mega Guru

gs.getUserID() will give you the user's sys_id.



var a = gs.getUserID();


gs.log("user sys_id: " + a);