Skip to content

Instantly share code, notes, and snippets.

@zeisss
Created June 26, 2015 09:39
Show Gist options
  • Save zeisss/151d3323955ec6e9b44f to your computer and use it in GitHub Desktop.
Save zeisss/151d3323955ec6e9b44f to your computer and use it in GitHub Desktop.
Finding the channels of a user in slack
curl https://api.slack.com/api/channels.list -d "token=${TOKEN}" | jq '.channels[] | {name: .name, m: (.members[] | contains("$MEMBERID"))}'|grep -B1 true|grep name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment