GlideUser - getRoles()

Returns a list of roles that includes explicitly granted roles, inherited roles, and roles acquired by group membership.

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