Slack.Web.Admin.Teams.Admins (SlackKit v1.0.0-alpha.0)

View Source

Summary

Functions

List all of the admins on a given workspace.

Functions

list(team_id, optional_params \\ %{})

List all of the admins on a given workspace.

API reference

Rate limit: Tier 3: 50+ per minute
Scopes:

View on docs.slack.dev ↗

Required Params

  • team_id -

Optional Params

  • cursor - Set cursor to next_cursor returned by the previous call to list items in the next page. ex: dXNlcjpVMEc5V0ZYTlo=
  • limit - The maximum number of items to return. ex: 200

Errors the API can return:

  • feature_not_enabled - The Admin APIs feature is not enabled for this team.
  • invalid_cursor - Invalid cursor.
  • invalid_limit - Limit must be between 1 and 1000 inclusive.
  • not_an_admin - This method is only accessible by org owners and admins.
  • team_not_found - team_id was not found.

See the Common Errors guide for errors returned by every Web API method.