Retrieve Private Channels in Team through API as Team Admin
If you've found the following limitation through the API where Private Channels in a given Team cannot be listed by a Team Admin due to access restrictions in the API
"Get Public Channels For Team" API endpoint currently requires permission listteamchannels in order to list Public Channels within a team.
https://api.mattermost.com/#tag/channels/operation/GetPublicChannelsForTeam
"Get Private Channels For Team" currently requires permission manage_system in order to list Private Channels within a team. That permission is restricted to System Admins.
https://api.mattermost.com/#tag/channels/operation/GetPrivateChannelsForTeam
Per Mattermost Permissions, a manage_system is a permission that is only assigned to System Admins
https://docs.mattermost.com/onboard/advanced-permissions-backend-infrastructure.html
As a Team Admin, I would like to generate a list of Private Channels within my team and retrieve their information. However, I cannot use the API point to list the Private Channels within my team. It seems that the permission is a tier higher than what it should be for this API point.
![](https://secure.gravatar.com/avatar/84b3c1f9570d9b8fd1491a179660df52?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)