While the Servoy dev-team does not add a new function… this one may work for you:
var group_id = security.getGroupId(arguments[0]) ; // the id of the group name passed as parameter
var user_groups = security.getUserGroups(); // all the groups associated to the current user
for ( var i = 1 ; i <= user_groups.getMaxRowIndex() ; i++ )
{
if (group_id == user_groups.getValue(i,1)) return true;
}
return false;
just call it passing a text var containing the group name to check