# Apply Access Control on single field

**URL:** <https://discuss.elastic.co/t/apply-access-control-on-single-field/303369>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [April 27, 2022, 9:15am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369 "2022-04-27T09:15:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamedheidarian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamedheidarian/32/104904_2.png) [@hamedheidarian](https://discuss.elastic.co/u/hamedheidarian)\
**Post date:** [April 27, 2022, 9:15am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369/1 "2022-04-27T09:15:43Z")

</div>

Hi, All field-level security documentation examples, apply access control on field of an index. But is there any way to apply it on field of a specific document?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 29, 2022, 1:10am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369/2 "2022-04-29T01:10:43Z")

</div>

Welcome to our community! 😃

Do you mean you want to apply it to just a single document in the entire index?

---

<div class="post-metadata">

**Author:** ![hamedheidarian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamedheidarian/32/104904_2.png) [@hamedheidarian](https://discuss.elastic.co/u/hamedheidarian)\
**Post date:** [April 29, 2022, 9:41am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369/4 "2022-04-29T09:41:31Z")

</div>

Thank you for your help, Yes exactly!  
For example, I have an index named "Movies" with a "releaseDate" field and there are two documents in it called "Godfather" and "Titanic". I just want to grant role1 read privilege to Godfather's releaseDate but not to Titanic's. Is that possible?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [April 29, 2022, 10:23am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369/5 "2022-04-29T10:23:39Z")

</div>

No, Field Level Security works by hiding the field (in the index) entirely. You can't hide it in a single document.

You'll need to use different fields if the documents need different security.

---

<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 27, 2022, 10:24am UTC](https://discuss.elastic.co/t/apply-access-control-on-single-field/303369/6 "2022-05-27T10:24:38Z")

</div>

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