Rocket.Chat's Community Open Call 🎤 Dec 15, 2021 Join us!

Excluding users from channel search

I am developing a custom implementation of Rocket.Chat and would like to know if there is a way to exclude users from being visible in the user/channel search if a user has a specific role? It looks like I can create my own custom SearchProvider for searching through messages, but it does not seem like this is the case for the user/channel search. Just wondering if this is possible.

If this is not a current feature, are there any plans to implement something like this in the future? If that is the case, then I can wait and upgrade to a future version instead creating a custom implementation.

I am running Rocket.Chat version 3.16.3