GlideSession - getRoles()

Gets a list of roles for the current user.

The list of roles does not reflect any changes made during the current user session. To get the updated list of roles, the user must log out and log back in.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String A comma separated list of roles.

gs.info(gs.getSession().getRoles());

Output:

admin,hr_fulfiller,itsa_fulfiller,security_admin