# Granular access to diferent queries in the index

**URL:** <https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615>\
**Category:** Kibana\
**Created:** [September 8, 2023, 2:07pm UTC](https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615 "2023-09-08T14:07:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihai-CMM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mihai-cmm/32/125429_2.png) [@Mihai-CMM](https://discuss.elastic.co/u/Mihai-CMM)\
**Post date:** [September 8, 2023, 2:07pm UTC](https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615/1 "2023-09-08T14:07:07Z")

</div>

Hello all,  
Can you please help with this question (saw some variants [Setup access dashboard per user](https://discuss.elastic.co/t/setup-access-dashboard-per-user/205497)) but not quite what i want or maybe google did not liked my question enough:

1. I have a VectorDev that sends all k8s logs to ES index vector
2. I've created a data view and i can discover all fileds
3. I want to create a space where namespace users will only be able to access "ns fields" for example only the data returned by kubernetes.pod\_namespaces: "default"

I did not find a way to implement such granularity. Any ideas? As an alternative can i create a dashboard to share with "userA" for kubernetes.pod\_namespaces: "userA ns"?

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 8, 2023, 2:16pm UTC](https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615/2 "2023-09-08T14:16:41Z")

</div>

Hi @Mihai-CMM

What you are describing sounds like document level security.. restricting access to certain documents based on a filter for certain roles and users.

Which is a commercial paid for feature. Take a look here.

> **[Document level security | Elasticsearch Guide \[8.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/document-level-security.html)**

Index level security is part of the basic free license.

---

<div class="post-metadata">

**Author:** ![Mihai-CMM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mihai-cmm/32/125429_2.png) [@Mihai-CMM](https://discuss.elastic.co/u/Mihai-CMM)\
**Post date:** [September 8, 2023, 2:18pm UTC](https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615/3 "2023-09-08T14:18:14Z")

</div>

thank you

---

<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:** [October 6, 2023, 2:18pm UTC](https://discuss.elastic.co/t/granular-access-to-diferent-queries-in-the-index/342615/4 "2023-10-06T14:18:25Z")

</div>

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