# Hide filter bar in dashboard

**URL:** <https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250>\
**Category:** Kibana\
**Created:** [April 10, 2019, 3:02pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250 "2019-04-10T15:02:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![landy](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@landy](https://discuss.elastic.co/u/landy)\
**Post date:** [April 10, 2019, 3:02pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/1 "2019-04-10T15:02:28Z")

</div>

Hi! Is there any way to hide filter bar in shared dashboard (ex:iframe)? I don't want my users to filter data and have access to see all data. Also, I am confused why there is filter bar in dashboard because we can add controller chart to let users filter data. Controller chart is more beautiful. For me, they are duplicate functions.

What I think ideally is:

1. filter bar helps developer to filter data which they want to show for their users;
2. Controller helps users to filter data based on the 'limited' data which was filtered by developer before;

Could anyone tell me how to hide filter bar in shared dashboard and why there is a filter bar in shared dashboard?

---

<div class="post-metadata">

**Author:** ![elastock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elastock/32/35672_2.png) [@elastock](https://discuss.elastic.co/u/elastock)\
**Post date:** [April 10, 2019, 3:24pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/2 "2019-04-10T15:24:05Z")

</div>

Hi .  
Homemade solution =\>  
You can prevent users to modify your dashboard and see informations by using security module .  
[https://www.elastic.co/guide/en/x-pack/current/field-and-document-access-control.html#document-level-security](https://www.elastic.co/guide/en/x-pack/current/field-and-document-access-control.html#document-level-security)  
And you can set up filter inside each visualisation to hide them from dashboard point of vue .

---

<div class="post-metadata">

**Author:** ![landy](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@landy](https://discuss.elastic.co/u/landy)\
**Post date:** [April 10, 2019, 3:39pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/3 "2019-04-10T15:39:54Z")

</div>

Thanks for quick help. Does this solution work for shared dashboard(ex:iframe) and a large number of users?

---

<div class="post-metadata">

**Author:** ![elastock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elastock/32/35672_2.png) [@elastock](https://discuss.elastic.co/u/elastock)\
**Post date:** [April 10, 2019, 4:03pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/4 "2019-04-10T16:03:52Z")

</div>

hello.  
For the iframe you can set up the param embedded=true in the url to prevent user to customize the dashboard . But if it is the only security , it can be fooled easily .

But document access control is configured inside Elasticsearch and not viewed by users .  
Filters are cumulative not exclusive.  
You cannot prevent users to click on dashboard .. If they click on anything , a filter will be applied on the dashboard .  
And you can set up filter inside each visualisation to hide them from dashboard point of vue( same in Iframe) .  
If you want to prevent users to see certains data. You have some work to do on your visualisation insides or in the security modules , or on your index configuration .  
you cannot prevent users to set up filter ,  
But you can prevent them to save the dashboard with the new filter applied .

---

<div class="post-metadata">

**Author:** ![landy](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@landy](https://discuss.elastic.co/u/landy)\
**Post date:** [April 16, 2019, 1:26pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/5 "2019-04-16T13:26:49Z")

</div>

Thanks again! I add 'embedded=true' in the url, but I can still use the filter and modify the dashboard:  
'iframe src="[http://10.36.182.54/goto/eb41e9c1e9f530f7cd6b81fad4bed?:embedded=true](http://10.36.182.54/goto/eb41e9c1e9f530f7cd6b81fad4bed?:embedded=true)" height="2100" width="1000" '  
I set the filter for the dashboard when developing and share it by using iframe. When I open the dashboard on the website, It first only shows the filtered data in dashboard(great). But I can still change the filter by myself and see all data in dashboard(bad), not only data I filtered.  
What do you mean 'If you want to prevent users to see certain data. You have some work to do on your visualisation insides or in the security modules , or on your index configuration .'? Does it mean modifying index configuration in database and configuring permitted people can have access to certain dataset?

---

<div class="post-metadata">

**Author:** ![elastock](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elastock/32/35672_2.png) [@elastock](https://discuss.elastic.co/u/elastock)\
**Post date:** [April 16, 2019, 2:10pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/6 "2019-04-16T14:10:40Z")

</div>

> Thanks again! I add 'embedded=true' in the url, but I can still use the filter and modify the dashboard:  
> 'iframe src="[http://10.36.182.54/goto/eb41e9c1e9f530f7cd6b81fad4bed?:embedded=true](http://10.36.182.54/goto/eb41e9c1e9f530f7cd6b81fad4bed?:embedded=true)" height="2100" width="1000" '

It's normal . It's not a security feature . It's just a trick . You cannot hide filter pins

> You have some work to do on your visualisation insides or in the security modules , or on your index configuration .'? Does it mean modifying index configuration in database and configuring permitted people can have access to certain dataset?

If your goals is to hide data from random users point of view . The best way is to use the XPACK security modules

> **[Security settings in Elasticsearch | Elasticsearch Guide \[6.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/security-settings.html)**

If you cannot/dont want to use security.You can use many tricks. You can make copy of certains indexes without certains data . And make your visualization on it .  
So you will have a set of visualization using full indexes and another set of visualization using truncated indexes .

You can also put filter inside each visualization separatedly like you can do in dashboard . But , in dashboard point of view , it will not appear .

---

<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:** [May 14, 2019, 2:10pm UTC](https://discuss.elastic.co/t/hide-filter-bar-in-dashboard/176250/7 "2019-05-14T14:10:42Z")

</div>

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