# Get logged in username from kibana scripted field and make post to api

**URL:** <https://discuss.elastic.co/t/get-logged-in-username-from-kibana-scripted-field-and-make-post-to-api/186918>\
**Category:** Kibana\
**Created:** [June 21, 2019, 5:19pm UTC](https://discuss.elastic.co/t/get-logged-in-username-from-kibana-scripted-field-and-make-post-to-api/186918 "2019-06-21T17:19:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serhii.zaidlin](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@serhii.zaidlin](https://discuss.elastic.co/u/serhii.zaidlin)\
**Post date:** [June 21, 2019, 5:19pm UTC](https://discuss.elastic.co/t/get-logged-in-username-from-kibana-scripted-field-and-make-post-to-api/186918/1 "2019-06-21T17:19:41Z")

</div>

Hello,  
What I'm trying trying to do - create an URL scripted field in kibana, which should make a request to my apps API. This request should contain some id information of logged in kibana user (username or any possible unique identifier).  
So I have two questions:

1. Is it posible to acces logged in user information (username, id, etc.) from kibana scripted field?
2. Is it possible to make request (POST ?) to some external API from URL formatted kibana scripted field?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [June 21, 2019, 10:42pm UTC](https://discuss.elastic.co/t/get-logged-in-username-from-kibana-scripted-field-and-make-post-to-api/186918/2 "2019-06-21T22:42:59Z")

</div>

> 1. Is it posible to acces logged in user information (username, id, etc.) from kibana scripted field?

No, this is not possible.

> 1. Is it possible to make request (POST ?) to some external API from URL formatted kibana scripted field?

It wouldn't be possible to do a POST since the browser will always use GET for links.

---

<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:** [July 19, 2019, 10:43pm UTC](https://discuss.elastic.co/t/get-logged-in-username-from-kibana-scripted-field-and-make-post-to-api/186918/3 "2019-07-19T22:43:02Z")

</div>

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