GlideUser - hasRoleFromList(String roles)

Returns true if the current user has at least one of the specified roles or has the admin role.

Table 1. Parameters
Name Type Description
roles String Comma-separated list of roles
Table 2. Returns
Type Description
Boolean Returns true if the current has a role in the list or the admin role.

var isOK = g_user.hasRoleFromList("itil, maint");