Hiding private user groups users on user directory page

I created five private groups and five private categories for that each group in a Discourse. No group has access to the other group and its categories. But in the user directory list (discourse.example.com/u) all users should see the each other.

I just want that: “members who are in the same group to see each other”

How can i do that? Any idea?

I don’t believe that the users page can be limited in this way

If you don’t want to show ALL users then you could hide this page with CSS

Members will be able to see a list of who else is in their group if they visit the group page, so maybe you could point them to /Groups instead as they will only see their group (not the hidden ones) and a list of other members

You won’t get the stats table and filter though