FlowmageDocs

Find user by e-mail

BetaReads data

Looks up a Slack account by its e-mail address.

Settings

SettingWhat it is
ConnectionRequiredThe Slack connection the step signs in with.
E-mail addressRequiredThe address the person signs in to Slack with. This needs the users:read.email scope on the app.
Stop the run when nobody matchesTurn it off to get found: false instead, so the flow can decide what to do next. A deactivated account also reads as not found.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `slack`)
emailtextits `{{ }}` must give a string
failIfNotFoundtrue/false, by default true

Output

FieldType
userPersonobject
foundSomebody matchedboolean
Sample output, and the expression for each field
  • foundtrue
  • user
    • id"U0123ABCD"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "email": "<e-mail address>",
    "failIfNotFound": true
  },
  "label": "Find user by e-mail",
  "type": "slack.findUserByEmail",
  "version": 1
}