Look Up User by Email
slack.lookup_user_by_email
ActionChat & messagingconnection required
Calls the Slack Web API with the connection's bot token.
Find the Slack user id behind an email address, to DM or mention them.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Slack
- Secret shape
- the Slack bot token (xoxb-…), or {"token": "xoxb-…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
email An email address belonging to a member of the workspace. Supports {{ }}. | string | Yes | — | email format | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The user id (U… or W…). | string | — |
name The user's Slack handle. | string | — |
real_name The user's display name, when they have set one. | string | — |
is_bot True for a bot user. | boolean | — |
is_admin True when the user is a workspace admin. | boolean | — |
deleted True when the account has been deactivated. | boolean | — |
tz The user's timezone, e.g. Europe/London. | string | — |
email The user's email, when the token has users:read.email. | string | — |
title The job title on the user's profile. | string | — |
user The whole user object Slack returned, unmodified. | object | — |
{
"deleted": false,
"email": "",
"id": "",
"is_admin": false,
"is_bot": false,
"name": "",
"real_name": "",
"title": "",
"tz": "",
"user": {}
}Notes
- The bot must be a member of a private channel before it can act there (Slack answers not_in_channel otherwise).
- Slack rate-limits each Web API method on its own tier; a throttled call fails with the number of seconds to wait and is safe for the node's retry policy to repeat.
- Needs the users:read.email scope; without it Slack answers missing_scope.
- An address nobody in the workspace uses fails with users_not_found.
Templates that use Slack
See Look Up User by Email run in a workflow.
In a technical demo we add the Slack connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.