We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

how to get current logged in user and email and department in service now

karna daripally
Kilo Contributor

fshnfgnx

5 REPLIES 5

Aman Kumar S
Kilo Patron

Hey,

Feel free to use default value in your catalog item variables

 

For User  javascript: gs.getUserID() ;

For email   javascript: gs.getUser().getEmail() ;

For Department   javascript: gs.getUser().getDepartmentID();

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar