Scoped GlideUser - getPreference(String name)

Gets the specified user preference value for the current user.

Table 1. Parameters
Name Type Description
name String The name of the preference.
Table 2. Returns
Type Description
String The preference value.
var currentUser = gs.getUser(); 
currentUser.savePreference(­'myPref','red'); 
gs.info(currentUser.getPreference(­'myPref'));

Output: