# Grant read privileges to specific documentss

**URL:** https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [April 1, 2023, 10:16am UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098 "2023-04-01T10:16:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [April 1, 2023, 10:16am UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/1 "2023-04-01T10:16:37Z")

</div>

Hi,

I want to create a role that can read only specific documents.  
For example:  
User A can only read documents where professional\_id = 49  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b82b165e95b807e59a90dc4bbf69c46979d9b910.png)

Now I want to display a default currency for each user  
For example, user A when consults his dashboard the default currency is EUR, and he can change it using the filters.

How can achieve this

---

<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: [April 1, 2023, 2:31pm UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/2 "2023-04-01T14:31:51Z")

</div>

Hi @hiba

For the first part of your question you are referring to [Document Level Security](https://www.elastic.co/guide/en/elasticsearch/reference/current/document-level-security.html#document-level-security). This capability is a commercial feature and requires a paid license.

The second question change the currency / value of a document based on a filter / drop down on a dashboard, I do not think that is possible today , if I understand your requirement.

---

<div class="post-metadata">

### Author: ![hiba](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hiba/32/110919_2.png) [@hiba](https://discuss.elastic.co/u/hiba)
#### Post date: [April 3, 2023, 11:46am UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/3 "2023-04-03T11:46:04Z")

</div>

Hi @stephenb ,

Thanks for your reply.

For the first part, I already have a paid license.

For the second question, I want to assign a default currency to each user.  
For example user A, when he consults his dashboard the default totals are in EUR and he will have the possibility to change the currency to USD

Is there a way to create a role like this  
(If user A the default currency to display is EUR )

---

<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: [April 3, 2023, 2:46pm UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/4 "2023-04-03T14:46:22Z")

</div>

Hi @hiba

I do not know a way to create a role / totals like that with OOTB roles and dashboards.

@Stratoula_Kalafateli Do you have any ideas?

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [April 3, 2023, 4:12pm UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/5 "2023-04-03T16:12:07Z")

</div>

No we dont't support this. You can always create an enhancement request to our public repo and we will evaluate!

---

<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 1, 2023, 4:12pm UTC](https://discuss.elastic.co/t/grant-read-privileges-to-specific-documentss/329098/6 "2023-05-01T16:12:34Z")

</div>

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