groups.getUserTypeForArray = function (groupIds, username, ignoreStudents, ignoreAssistants, ignoreTeachers) {
        if (groupIds.length > 0) {
            groupIds = groupIds.slice(0);
            var groupId = groupIds.shift();
            return groups.getUserType(groupId, username, ignoreStudents, ignoreAssistants, ignoreTeachers)