What will gs.getUserID() return ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2016 01:05 AM
What will gs.getUserID() return in case the requester of a task replies a "pending-customer action" notification email sent from the system ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2017 12:41 AM
My understanding is that the incoming email's from: address is searched for in the sys_user table, and if found, that is the user that is used as the current user. If they are not there, the inbound email may not be processed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2019 11:18 AM
Hi Chuck,
I used gs.getUserID() in a script action attachment.read and it is returning 'System' as the current user logged in.
I need to log who viewed the attachment in work notes of an incident. But it is returning as if system viewed/downloaded the attachment with whoever I impersonate.
Is there another way to call the current user logged in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 11:26 AM
The links are currently broken.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 12:40 PM
Currently valid links:
gs.getUserID()
: returns the sys_id of the current user.gs.getUser()
: returns a reference to the user object for the current user.
When in doubt, head to ServiceNow Developers and consult the Reference section - it will contain information about all publicly supported APIs.