# I want to restict my Time range as per user

**URL:** <https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424>\
**Category:** Kibana\
**Created:** [January 18, 2021, 12:17pm UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424 "2021-01-18T12:17:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [January 18, 2021, 12:17pm UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424/1 "2021-01-18T12:17:50Z")

</div>

Hi,

I want to restrict my Kibana Dashboard Time-Range feature to specific dates as per User or Space.  
In brief,  
If A user Logs in he should be able to see data till 30 days, where B user can only search data for only 90 Days.

Please Help.  
Thanks  
Regards Rohit

---

<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:** [January 18, 2021, 5:11pm UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424/2 "2021-01-18T17:11:04Z")

</div>

If you want to restrict a user to a specific time range, then you'll want to check out Document Level Security ("DLS"). This allows you to specify an Elasticsearch query to filter all searches performed by your users: [https://www.elastic.co/guide/en/elasticsearch/reference/current/field-and-document-access-control.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/field-and-document-access-control.html)

cc @Larry_Gregory

---

<div class="post-metadata">

**Author:** ![Rohit\_Kumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_kumbhar/32/67682_2.png) [@Rohit\_Kumbhar](https://discuss.elastic.co/u/Rohit_Kumbhar)\
**Post date:** [January 19, 2021, 5:06am UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424/3 "2021-01-19T05:06:52Z")

</div>

Thanks @rashmi for your quick reply,

Is their any way to restrict/fix timerange on Dashboard

Thanks  
Regards Rohit

---

<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:** [January 19, 2021, 5:34am UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424/4 "2021-01-19T05:34:56Z")

</div>

Unfortunately it's currently not possible to limit the time range a user can chose. If you would like to see such a feature in the future, please feel free to open an [issue](https://github.com/elastic/kibana/issues) for that on GitHub.

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:** [February 16, 2021, 5:34am UTC](https://discuss.elastic.co/t/i-want-to-restict-my-time-range-as-per-user/261424/5 "2021-02-16T05:34:56Z")

</div>

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