How do i get full name and user id
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 02:29 PM
HI,
I am actually getting user full name by using the following script
('user', gs.getUser().getFullName() );
How can i get the user full name as well as user id.
ex: Nandakishore (nkishore)
Thank you:)
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2016 02:31 PM
Hi Nanda,
Please refer.
Getting a User Object - ServiceNow Wiki
gs.getUser().getFullName(); // return current user full name
getUserID(); //Will return the user id.