Sample - Slack Web API
GET/admin.users.list

List users in a workspace

Lists users on a workspace. Provide team_id to select the workspace, and use cursor and limit to control cursor-based pagination. Pass the returned next_cursor as cursor to retrieve the next page.

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

4 parameters
team_idstringrequired
Identifier of the workspace whose users to list.
cursorstringoptional
Cursor from the previous response's `next_cursor` value for retrieving the next page.
limitintegeroptional
Integer limiting the number of users to retrieve per page.
tokenstringrequired
Authentication token with the `admin.users:read` scope.

2 status codes
200Returns an object with `ok` set to true and the requested page of workspace users.
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 team_id and a token with the admin.users:read scope. Use cursor only with a value returned in next_cursor, and use limit to control the number of users retrieved per page.