# Restricting Filter Options in Shared Kibana Dashboards

**URL:** https://discuss.elastic.co/t/restricting-filter-options-in-shared-kibana-dashboards/349176
**Category:** Kibana
**Created:** [December 12, 2023, 4:39pm UTC](https://discuss.elastic.co/t/restricting-filter-options-in-shared-kibana-dashboards/349176 "2023-12-12T16:39:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alex\_Gonza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_gonza/32/122177_2.png) [@Alex\_Gonza](https://discuss.elastic.co/u/Alex_Gonza)
#### Post date: [December 12, 2023, 4:39pm UTC](https://discuss.elastic.co/t/restricting-filter-options-in-shared-kibana-dashboards/349176/1 "2023-12-12T16:39:56Z")

</div>

Hello,

I'm sharing Kibana dashboards with clients that contain metrics from various indexes. Clients need to interact with these dashboards embedded in a web page, including using the filter bar for analysis. However, the filter bar exposes all client keys in the database, which is a privacy concern.

Attempts to limit access through user roles have led to the issue where the visualizations can't access the necessary 'client' attribute, impacting the dashboard functionality.

Is there a way to let clients use the filter bar but restrict them from seeing or using the 'client' key filter, ensuring they only see their data?

I'm using Kibana with Elastic Cloud, no selfhosting server.

Appreciate any insights or alternative approaches.

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [December 27, 2023, 10:57pm UTC](https://discuss.elastic.co/t/restricting-filter-options-in-shared-kibana-dashboards/349176/2 "2023-12-27T22:57:02Z")

</div>

you need to look into document level security: [Document level security | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/document-level-security.html)  
This can limit people to only documents that match their client ID.  
The last example on the page is pretty much what you need.

---

<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: [January 24, 2024, 10:57pm UTC](https://discuss.elastic.co/t/restricting-filter-options-in-shared-kibana-dashboards/349176/3 "2024-01-24T22:57:47Z")

</div>

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