Sample - Slack Web API
GET/admin.usergroups.listChannels

List an IDP group's default channels

Lists the default channels linked to an organization-level IDP group. Provide usergroup_id and optionally use team_id to scope the results to a workspace. Set include_num_members to include or exclude member counts for each channel.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
usergroup_idstringrequired
Identifier of the IDP group whose default channels to list.
team_idstringoptional
Identifier of the workspace to scope the channel list to.
include_num_membersbooleanoptional
Boolean flag that controls whether member counts are included for each channel.
tokenstringrequired
Authentication token with the `admin.usergroups:read` scope.

2 status codes
200Returns an object with `ok` set to true and the requested IDP group channel information.
okbooleanrequired
Allowed:true
defaultReturns an object with `ok` set to false when the request cannot be completed.
okbooleanrequired
Allowed:false

Error handling

The request must include usergroup_id and a token with the admin.usergroups:read scope. Use team_id to identify the workspace to scope, and use include_num_members to control whether channel member counts are included.