GlideUser - isMemberOf(String group)

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

Table 1. Parameters
Name Type Description
group String Group to check
Table 2. Returns
Type Description
Boolean True if the user is a member of the group.

Scoped equivalent

To use the isMemberOf() method in a scoped application, use the corresponding scoped method: Scoped GlideUser - isMemberOf(String group).

var currentUser = gs.getUser(); 
gs.info(currentUser.isMemberOf(­'Capacity Mgmt'));