In this particular case it probably makes sense to rename 'type' to 'group_type' in order to avoid ambiguity with 'users_type'.  In addition, it would be clearer to specify the enrollment status as the filter criteria, versus 'users_type' -- ie, enrolled=true/false.