Scoped GlideUser - getID()

Gets the sys_id of the current user.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The user's sys_id.
var currentUser = gs.getUser(); 
gs.info(currentUser.getID());

Output: