Skip to main content

List Users

Retrieves a list of users from Slack.

Common Properties​

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs​

  • Client Id - The unique identifier for the Slack client connection obtained from the Connect node.

Output​

  • Users List - A list of users in the Slack workspace, including details such as user ID, real name, and email address.

How It Works​

The List Users node retrieves all users from the connected Slack workspace. When executed, the node:

  1. Retrieves the Client Id from the input
  2. Validates the Client Id by checking if a connection exists
  3. Calls the Slack API to get a list of users
  4. Processes the user information into a structured format
  5. Returns the list of users as output

Each user in the list contains the following information:

  • Id - The unique identifier of the user
  • Name - The real name of the user
  • Email - The email address of the user

Requirements​

  • A valid Slack client connection (Client Id from the Connect node)
  • Appropriate permissions to view users in the Slack workspace

Error Handling​

The node will return specific errors in the following cases:

  • Invalid Client Id that doesn't correspond to an existing connection
  • Slack API errors when fetching the user list

Usage Notes​

  • The node returns all users that the bot has access to
  • User information includes real names and email addresses when available
  • Some user information may be limited based on workspace privacy settings
  • The output can be used with other nodes that require user information
  • Bots and apps are included in the user list