GlideUser - getUserRoles()

Returns the list of roles explicitly granted to the user.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Array List of roles explicitly assigned to the user
var currentUser = gs.getUser(); 
gs.info(currentUser.getUserRoles());