# Restrict time range for users in kibana

**URL:** <https://discuss.elastic.co/t/restrict-time-range-for-users-in-kibana/251371>\
**Category:** Kibana\
**Created:** [October 8, 2020, 4:52am UTC](https://discuss.elastic.co/t/restrict-time-range-for-users-in-kibana/251371 "2020-10-08T04:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Anand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_anand/32/47498_2.png) [@Saurabh\_Anand](https://discuss.elastic.co/u/Saurabh_Anand)\
**Post date:** [October 8, 2020, 4:52am UTC](https://discuss.elastic.co/t/restrict-time-range-for-users-in-kibana/251371/1 "2020-10-08T04:52:49Z")

</div>

Is it possible to restrict time ranges for different users in Kibana? For example User1 can not search data before 90 days. User1 can only see those data available between now to 90 days before?

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 8, 2020, 5:38am UTC](https://discuss.elastic.co/t/restrict-time-range-for-users-in-kibana/251371/2 "2020-10-08T05:38:24Z")

</div>

Hi,

Depending on your usecase and license it might or might not possible(have not tested those options myself):

If you have a platinum license you can try the [document level security](https://www.elastic.co/guide/en/elasticsearch/reference/current/document-level-security.html) to restrict the access for the user to documents from the last 90 days.

Otherwise, you might want to try [filtered aliases](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#filtered) to create an Alias on the Index containing only the last 90 days and grant access to this alias instead of the original index. Downside: The alias acts as an index so if you have visualizations they would have to be updated to point to the alias.

Best regards  
Wolfram

---

<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:** [November 5, 2020, 5:38am UTC](https://discuss.elastic.co/t/restrict-time-range-for-users-in-kibana/251371/3 "2020-11-05T05:38:24Z")

</div>

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