# Retrieving the current session info in kibana plugin

**URL:** <https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041>\
**Category:** Kibana\
**Created:** [May 9, 2017, 8:48am UTC](https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041 "2017-05-09T08:48:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [May 9, 2017, 8:48am UTC](https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041/1 "2017-05-09T08:48:21Z")

</div>

Hello.

I would like to ask question regarding to x-pack and kibana plugin integration.

If you log in to kibana via x-pack security , is it possible to retrieve the session information ( user name to be specific) inside kibana plugin ? Perhaps, is there a library for it?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [May 9, 2017, 10:53am UTC](https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041/2 "2017-05-09T10:53:23Z")

</div>

Hi @YuWatanabe,

there is an api route `/api/security/v1/me` that returns an object containing various user information including the name. Please be aware that this API is not documented and might therefore change without notice in future versions.

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [May 9, 2017, 10:54am UTC](https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041/3 "2017-05-09T10:54:21Z")

</div>

@weltenwort

Thanks for the reply.

I will check it out.

---

<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:** [June 6, 2017, 11:00am UTC](https://discuss.elastic.co/t/retrieving-the-current-session-info-in-kibana-plugin/85041/4 "2017-06-06T11:00:38Z")

</div>

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