provider usergroups GET /usergroups.list
@utdk/slack /usergroups.list
usergroups_list
List all User Groups for a team
include_users query
Include the list of users for each User Group.
boolean
token query required
Authentication token. Requires scope: `usergroups:read`
string
include_count query
Include the number of users in each User Group.
boolean
include_disabled query
Include disabled User Groups.
boolean

Try it

Authentication
Configure credentials for Slack Web API
usergroupsList
GET/usergroups.list
List all User Groups for a team

Include the list of users for each User Group.

required

Authentication token. Requires scope: `usergroups:read`

Include the number of users in each User Group.

Include disabled User Groups.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.usergroupsList()