# How to modify dashboard request in backend?

**URL:** <https://discuss.elastic.co/t/how-to-modify-dashboard-request-in-backend/136658>\
**Category:** Kibana\
**Created:** [June 20, 2018, 9:35am UTC](https://discuss.elastic.co/t/how-to-modify-dashboard-request-in-backend/136658 "2018-06-20T09:35:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongkai1993](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dongkai1993](https://discuss.elastic.co/u/dongkai1993)\
**Post date:** [June 20, 2018, 9:35am UTC](https://discuss.elastic.co/t/how-to-modify-dashboard-request-in-backend/136658/1 "2018-06-20T09:35:24Z")

</div>

I want to use `server.auth.scheme` to intercept request, and modify the payload before elasticsearch handle it. But cannot get the payload.

My ultimate goal is to only allow users to get their own data, so I want to add filters to es query, is there any other way?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 20, 2018, 4:29pm UTC](https://discuss.elastic.co/t/how-to-modify-dashboard-request-in-backend/136658/2 "2018-06-20T16:29:35Z")

</div>

It sounds like xpack security would do the trick for your ultimate goal- Unless you are talking about saved objects in .kibana. In that case they’ll have to wait for RBAC - You can follow/subscribe to the ticket and its progress here: [https://github.com/elastic/kibana/pull/19723](https://github.com/elastic/kibana/pull/19723)  
I’m not too sure about the interception....Maybe if there was a reverse proxy in front of ES this might be possible ….?

I will get back to u if I have more insights into this.

Thanks  
Rashmi

---

<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 18, 2018, 4:42pm UTC](https://discuss.elastic.co/t/how-to-modify-dashboard-request-in-backend/136658/3 "2018-07-18T16:42:29Z")

</div>

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