GlideUser - hasRoleExactly(String role)

Returns true only if the current user has the specified role.

Table 1. Parameters
Name Type Description
role String The role
Table 2. Returns
Type Description
Boolean Returns true if the current user has the specified role.

var isItil = g_user.hasRoleExactly('itil');