# Username on Slack is not transferred correctly in transcript export

**URL:** <https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618>\
**Category:** Support\
**Tags:** chat-integration\
**Created:** [20 ביוני,‏ 2018,‏ 5:16am UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618 "2018-06-20T05:16:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)\
**Post date:** [20 ביוני,‏ 2018,‏ 5:16am UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618/1 "2018-06-20T05:16:00Z")

</div>

Seeing a weird bug (?) with the feature of putting slack conversations on discourse: my username on Slack is not transferred to the quote correctly. Username on slack is @anon20593648, but when posted to discourse, it appears as `@<my first name>`.

How do I ensure consistency between usernames? Is there a mapping between usernames I can set up? Why is this plugging pulling my username as my first name instead of my Slack handle?

---

<div class="post-metadata">

**Author:** ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)\
**Post date:** [20 ביוני,‏ 2018,‏ 8:00am UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618/2 "2018-06-20T08:00:58Z")

</div>

Aha.

> **[The one about usernames | Slack Developer Docs](https://docs.slack.dev/changelog/2017-09-the-one-about-usernames/)**
>
> Slack is phasing out the @username artifact in favor of the more expressive and flexible concept of display names.

[https://github.com/discourse/discourse-chat-integration/blob/master/lib/discourse\_chat/provider/slack/slack\_message.rb#L10](https://github.com/discourse/discourse-chat-integration/blob/master/lib/discourse_chat/provider/slack/slack_message.rb#L10)

Here’s an example which should be `user.profile.display_name` or `user.profile.display_name_normalized`, rather than `user.name` which is deprecated. All Slaxk related files should be the same.

@david would you accept a PR? (Although looking at the code, there are perhaps more instances of this than I would have guessed, maybe the person who wrote it could change it relatively easily.)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2 בינואר,‏ 2021,‏ 6:28pm UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618/3 "2021-01-02T18:28:41Z")

</div>



---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [3 בינואר,‏ 2021,‏ 6:23am UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618/4 "2021-01-03T06:23:33Z")

</div>

Did you submit a PR for this?

---

<div class="post-metadata">

**Author:** ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)\
**Post date:** [5 בינואר,‏ 2021,‏ 2:05am UTC](https://meta.discourse.org/t/username-on-slack-is-not-transferred-correctly-in-transcript-export/90618/5 "2021-01-05T02:05:01Z")

</div>

Honestly don’t remember, that was a while ago.
