Scoped GlideUser - isMemberOf(String group)

Determines if the current user is a member of the specified group.

Table 1. Parameters
Name Type Description
group String The group to check.
Table 2. Returns
Type Description
Boolean True if the user is a member of the group.
var currentUser = gs.getUser(); 
gs.info(currentUser.isMemberOf(­'Capacity Mgmt'));

Output: