Sorting search results

I have 3 user groups I’m my database, Students, Teachers and Non- Teaching staffs. When a user selects for example, Student User group, a custom state STUDENT is set to YES and the other user group’s respective custom states are automatically set off and vice versa.

When the user enters a search term( username) into the search box, I want the results to be only matches from the active user group’s state.

How do I go about this? I’ve been try to use CONDITIONS but cant seem to get it right cos I also have the FUZZY AUTOSEARCH plugin linked with the search box…