The Get user details action enables you to retrieve detailed information about a specific Slack user, such as their username, email, status, and other profile details. This action enables you to access accurate user information for automation workflows.

Settings

  • Use the Session name field to select one of the following options:
    • Session name: Enter the name of the session used during the Connect action.

      (Optional) Click the Insert a value icon to select an existing variable that you have used to store the default session name.

    • Variable: Enter the name of the variable that you have used to store the Slack session name.
  • User ID: Specify the Slack user ID.
  • Assign user details to a variable: choose either Multiple variables or Dictionary variable to save the message details in the output variable:
    • Multiple variables: Assigns each retrieved value of a specific key (for example, ID, workspaceID, username, realName, displayName, email, phone, title, isBot, isDeleted, timezone, isAdmin) to a separate variable enabling you to map each detail to a specific variable. Do following steps for each variable:
      • Click Add variable mapping.
      • Enter the Key of the variable.
      • In the Map to variable field, choose a variable where the data will be saved.
      • Click Add for this data to be saved to the configured variable.
      Table 1. Keys with variable mapping
      Key Description Variable type
      ID Unique identifier assigned to the Slack message String
      workspaceID Identifier of the workspace the user belongs to. String
      username Indicates the username of the Slack user. String
      realName Indicates the full name of the user. String
      displayName Indicates the name shown in Slack. String
      email Indicates the email address of the user. String
      phone Indicates the phone number of the user. String
      title Indicates the job title of the user. String
      isBot Indicates whether the user is a bot Boolean
      isDeleted Indicates whether the user account is deactivated. Boolean
      timezone Indicates the time zone of the user. String
      isAdmin Indicates whether the user has admin privileges. Boolean
    • Dictionary: stores all values in a dictionary object with key-value pairs.