Skip to content
Software capabilities

Slack capability

How to find a Slack user

Call users.lookupByEmail when you know the email address or users.info when you know the Slack ID. The Slack directory is useful when you only know the person’s name.

Documentation reviewed

Ways to do it

API

users.lookupByEmail

Resolve a workspace member’s registered email address to a Slack user object.

Requirements
An authorized Slack token that supports the method and the users:read.email scope.
Limitations
Slack returns users_not_found for deactivated users.

Example

GET https://slack.com/api/users.lookupByEmail?email=person%40example.com
Read source: Slack users.lookupByEmail reference

API

users.info

Retrieve a Slack user object by its user ID.

Requirements
An authorized Slack token with users:read and the user ID.
Limitations
An email field requires users:read.email in addition to users:read.

Example

GET https://slack.com/api/users.info?user=USER_ID
Read source: Slack users.info reference

Interface

People directory

Search the Slack directory by name and open the member’s profile.

Requirements
Workspace access and permission to view the profile.
Limitations
The directory is meant for browsing people and user groups available to your account. Profile details depend on what has been filled in.
Read source: Slack directory help