# Search timeout per role

**URL:** <https://discuss.elastic.co/t/search-timeout-per-role/174583>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 29, 2019, 5:24pm UTC](https://discuss.elastic.co/t/search-timeout-per-role/174583 "2019-03-29T17:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![programagor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/programagor/32/40183_2.png) [@programagor](https://discuss.elastic.co/u/programagor)\
**Post date:** [March 29, 2019, 5:24pm UTC](https://discuss.elastic.co/t/search-timeout-per-role/174583/1 "2019-03-29T17:24:42Z")

</div>

Greetings

Is it possible to use the Roles API to set the `timeout` parameter on a per-role basis?

For example, I would like to restrict users belonging to a role `generic_user` to making searches that take no longer than 10 seconds, but I still want my reporters belonging to a role `reporting_user` to be able to make several minutes long searches.

Is this possible as of 6.7, or is it planned for further out, or not at all?

Thanks

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [April 1, 2019, 4:26am UTC](https://discuss.elastic.co/t/search-timeout-per-role/174583/2 "2019-04-01T04:26:08Z")

</div>

This is not currently supported, and we have no concrete plans for it.

We are considering features in the general space of per user limits/restrictions, but there's nothing planned for the very near future.

---

<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:** [April 29, 2019, 4:26am UTC](https://discuss.elastic.co/t/search-timeout-per-role/174583/3 "2019-04-29T04:26:24Z")

</div>

Closed on April 29, 2019, 4:26am UTC

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