Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Getting user display name from Slack app API Bolt with user select menu

I have been following the documentation to select a user from my workspace using the Slack app API kit.

However, once I select a user this is the payload that is show in the action listener

{
  type: 'users_select',
  action_id: 'user_select',
  block_id: 'section678',
  selected_user: 'U02GL7WT4JX',
  action_ts: '1633620609.616449'
}

Technically, I do have the user via the ID, but I was hoping that I would be able to get the slack display name rather than the id. I've been looking at the slack documentation but I see no other way to get the username other than using the Slack REST API.

I would rather get the slack display name from using the App kit rather than the slack rest api. Is this possible?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I overestimated the difficulty of this task. Turns out bolt allows for easy access to the web api as stated here

Here's my resulting code

index.js

  const result = await client.users.info({
     user: payload.selected_user,
  });
  this.selectedUser = result.user.name;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!