Scoped GlideUser - getName()

Gets the user id, or login name, of the current user.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The user ID.
var currentUser = gs.getUser(); 
gs.info(currentUser.getName());

Output: