1

Is there a way to list all the channels created by a given user (or by Me)? A search query like:

#channels created_by:@user.name

I dont see this information on user's profile page on Slack desktop client or Web.

1 Answer 1

1

You can do it via the API. Sample code in python:

client = WebClient(...)
response = client.conversations_list()
channels_i_created = [x for x in response.data['channels']
                      if x['creator'] == my_user_id]

Your user id can be obtained via client.users_list given a username. See https://api.slack.com/methods/conversations.list and https://api.slack.com/methods/users.list for more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.