GlideUser - getDisplayName()

Returns the current user's display name.

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

Scoped equivalent

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

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