- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 09:15 PM
Hello Experts,
I feel strange when I'm using Glide system API method gs.getUserID in script include, it just returns 'system' instead of the sys_id of the current user. And also other methods related all return 'system'. Do you know the reason for it?
Thanks & Regards
Amber
Solved! Go to Solution.
- Labels:
-
compliance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 09:53 PM
Amber,
Can it be that Script Include is being executed from email? gs.getuserID() will return sys_id of the currently executing user. In case of email or scheduled jobs, this can be "system".
See simiilar question in the following thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 11:08 PM
It works well in background script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2022 12:54 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2022 09:53 PM
Amber,
Can it be that Script Include is being executed from email? gs.getuserID() will return sys_id of the currently executing user. In case of email or scheduled jobs, this can be "system".
See simiilar question in the following thread.