Include private channels to search based on current user membership
Make Mattermost API channels search method
( /teams/{team_id}/channels/search )
to include private channels where the current user is a member.
E.g. if the user A is a member of channel B and user A performs channel search, it will get channel B in a response from server if B matches the term.
In Mattermost 5.5.0 search returns only public channels in results. The only way to find channel by display name is to get all channels current user is a member of and iterate over them on client side.
![](https://secure.gravatar.com/avatar/20b59a86c7a9df41d7601d1db4698cbf?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Lan Do commented
I need this feature. At the moment, there is no way to list private channel using API or search message in private channels