GlideUser - getID

Returns the sys_id of the current user.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String User's sys_id

Scoped equivalent

To use the getID() method in a scoped application, use the corresponding scoped method: Scoped GlideUser - getID().

var currentUser = gs.getUser(); 
gs.info(currentUser.getID());