Get current username of logged in user
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2016 09:39 PM
Hello Everyone,
I want current username of logged in user through Glide System.
Regards
Ankul
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2021 09:22 AM
Hey
getUserName() is the method of glide system used to find current logged in user's name. Below is the link of service-now wiki where u can find all the methods of glide system. Returns a reference to the User object for the current user.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2024 12:03 PM
Use gs.getUserName() to get current logged in username. You can put this as query in GlideRecord as
ga.addQuery('user_name',gs.getUserName());