How do I fetch all the channels which the user is associated/joined/part of?
I have a use case where I want to fetch all the channels the user is part of using the user's delegated token. Currently using the API ListAllChannel OR ListChannel
user receives the channel which the user is not part of ex- A pvt channel created by some other member which the user is not part of also shows up in the response of the API.
Please let me know if it's possible or not.
To be even more brief:-
The current List AllChannel endpoint returns even the private channels and shared channels in 2 situations.
- If user is "Admin"
- If user is "Owner" of a team
In both the cases listed above, if there is a team with private channels, shared channels which the user is not part of (these channels won't show up in teams app), but these channels information is returned in the API response!
Ideally, we would like to have only the channels information the user can access/is part of. But the current channel endpoints do not seem to support this functionality. Kindly correct me if I'm wrong.
Could you help us out in this usecase please? Thank you!
Sign in to comment