in case you have a very long list of users (hundreds) and you also have
special user's profile fields set up, in advance (class , school name, major, level, grade...)
this little patch enables the teacher to filter the user's list of potential members
by those extra user's profile fields.
please see comments for implementation of this patch