# Using current logged in username as dashboard filter

**URL:** https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599
**Category:** Elasticsearch
**Created:** [April 11, 2018, 9:32am UTC](https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599 "2018-04-11T09:32:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mhakkiersoy](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@mhakkiersoy](https://discuss.elastic.co/u/mhakkiersoy)
#### Post date: [April 11, 2018, 9:32am UTC](https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599/1 "2018-04-11T09:32:01Z")

</div>

We are using xpack and trying to get logged username and pass it to the dashboard for filtering. We have read lots of documents and discussion topics on this site however we haven't find out a usable solution yet, but in [one of the documents](https://www.elastic.co/guide/en/x-pack/current/field-and-document-access-control.html) we have seen that \_user.username parameter can be used to get the current username. Is there suggestion from anyone on how to use that parameter or solve this issue in some other way?

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [April 17, 2018, 7:09pm UTC](https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599/2 "2018-04-17T19:09:05Z")

</div>

Unfortunately, this won't be possible in Kibana today without implementing a custom plugin.

---

<div class="post-metadata">

### Author: ![mhakkiersoy](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@mhakkiersoy](https://discuss.elastic.co/u/mhakkiersoy)
#### Post date: [May 1, 2018, 8:47pm UTC](https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599/3 "2018-05-01T20:47:24Z")

</div>

Thank you Lukas. We have started to build a custom solution for our issue. I hope there will be a solution for this kind of needs in later releases.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 29, 2018, 8:47pm UTC](https://discuss.elastic.co/t/using-current-logged-in-username-as-dashboard-filter/127599/4 "2018-05-29T20:47:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
