What will gs.getUserID() return ?

Amarendra
Mega Contributor

What will gs.getUserID() return in case the requester of a task replies a "pending-customer action" notification email sent from the system ?

8 REPLIES 8

Community Alums
Not applicable

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.


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.

The links are currently broken.

Currently valid links:

When in doubt, head to ServiceNow Developers and consult the Reference section - it will contain information about all publicly supported APIs.