How to separate users search according to RT Group

Hi, I’m trying to find a way how to fully separate customers. We have multiple queues with right permission but problem is that any user can find any other customer user thru Search->User. We need user from group A to be able to find user from group A only(including data-autocomplete suggestion). Many thanks for help.

I believe since the users are privileged they are able to see other users, as far as I know there isn’t a config option to change this behavior. If you are willing to write some code you can most likely achieve this behavior by making use if some callbacks