How to map circle CI username to slack username

Hello everyone,

I’m currently working on a project where I’d like to integrate CircleCI with Slack for build notifications. Ideally, I want the notifications in Slack to mention the specific user whose commit triggered the build.

From my understanding, the slack-id-lookup orb can be used to map Git commit emails to Slack IDs, assuming there’s a consistent match between Git emails and Slack emails. However, my challenge lies in mapping the CircleCI usernames (which often are GitHub/Bitbucket usernames) to Slack usernames.

Some points to consider:

  1. Not every developer uses their work email for their Git commits, leading to potential mismatches.
  2. I’m looking for an approach that requires minimal manual mapping or maintenance, given that our team may grow or change over time.

Has anyone tackled a similar challenge? I’d appreciate any insights, approaches, or tools you might recommend to make this mapping process smoother.

Thank you in advance for your help !