feat(slack): add tool to look up a user by email#201
Merged
Conversation
Callers that only know an internal user's email address had to page the entire workspace to find their Slack account, which is slow and awkward for automated agents that want to @-mention the right person. Add a direct email-to-user lookup that returns the Slack user ID and a ready-to-use mention string, so an agent can tag someone from just their email in a single call.
The security scan started failing on newly published advisories: a crypto/tls issue fixed in the latest Go patch release, and two AWS SDK service advisories. None are related to this branch's feature work, but they block the pipeline. Move to the patched Go release and update the affected AWS SDK dependencies so the vulnerability scan passes cleanly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Automated agents (e.g. Curri's Live Delivery triage bot) often know only an internal user's email address and want to @-mention that person in Slack. Today the only way to map an email to a Slack user is
slack_list_users, which pages the entire workspace and filters client-side — slow and awkward for a single lookup.What
slack_lookup_user_by_emailtool wrapping Slack'susers.lookupByEmail.mentionstring (<@U…>) so callers can tag the user directly.users:read.emailscope (documented in the tool description).Test
go build,go vet, andgo test ./integrations/slack/all pass.💘 Generated with Crush