# In search result drop box: add given name next to username

**URL:** <https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735>\
**Category:** UX\
**Created:** [17.Август.2016 13:07:25 UTC](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735 "2016-08-17T13:07:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [20.Август.2016 16:33:45 UTC](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735/2 "2016-08-20T16:33:45Z")

</div>

After 1 year, I eventually got the discourse dev environment with Vagrant running on my opensuse maschine. 😃

To realise the proposal one has to:

- make sure that the name for each user is returned if `Settings.enable_names` is active
- add some html to display the name

I have no idea how these serializers work. The search result uses this one:

> <https://github.com/discourse/discourse/blob/main/app/serializers/basic_user_serializer.rb>

`include_name?` is already there, but I don’t know how this is used.

To display the name, one probably has to change some lines in here:

> <https://github.com/discourse/discourse/blob/8321bdab4eae9be002b273d8478938f988b850d1/app/assets/javascripts/discourse/widgets/search-menu-results.js.es6#L47>

---

_[View the full topic](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735)._
