Skip to content

fix: add email field to slack_search_users filter#24

Open
hashiyaman wants to merge 1 commit intoubie-oss:mainfrom
hashiyaman:fix/search-users-by-email
Open

fix: add email field to slack_search_users filter#24
hashiyaman wants to merge 1 commit intoubie-oss:mainfrom
hashiyaman:fix/search-users-by-email

Conversation

@hashiyaman
Copy link
Copy Markdown

Summary

  • slack_search_users now matches against profile.email in addition to name, real_name, display_name, and display_name_normalized
  • This allows finding users by their email address (e.g. tsubasa.nakamura@ubie-partners.com)

Background

Contractors/freelancers whose email domain differs from the main org (e.g. @ubie-partners.com) could not be found via slack_search_users because the tool only searched name fields. This caused downstream workflows (n8n Activity Report generation) to fail Slack ID resolution for ~176 contractor accounts.

Changes

  • src/index.ts: Add user.profile.email to the search filter in slack_search_users
  • Updated tool description to mention email search capability

Test plan

  • Search by full email: tsubasa.nakamura@ubie-partners.com → should return the user
  • Search by email domain: @ubie-partners.com → should return matching users
  • Search by name still works: 中村翼 → should return the user
  • Existing name-based searches are not affected

🤖 Generated with Claude Code

Previously, slack_search_users only matched against username,
display_name, real_name, and display_name_normalized. Users
searching by email address (e.g. contractors with non-standard
email domains) would get no results.

Add profile.email to the search filter so that email-based
lookups work correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant