# X-Pack Security allow only to create a document but not to update it

**URL:** <https://discuss.elastic.co/t/x-pack-security-allow-only-to-create-a-document-but-not-to-update-it/148660>\
**Category:** Elasticsearch\
**Created:** [September 14, 2018, 5:28pm UTC](https://discuss.elastic.co/t/x-pack-security-allow-only-to-create-a-document-but-not-to-update-it/148660 "2018-09-14T17:28:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alezama](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@alezama](https://discuss.elastic.co/u/alezama)\
**Post date:** [September 14, 2018, 5:28pm UTC](https://discuss.elastic.co/t/x-pack-security-allow-only-to-create-a-document-but-not-to-update-it/148660/1 "2018-09-14T17:28:45Z")

</div>

Hello Comunity,

Is there a role in the security X-Pack that allows only the creation of a document in an index but not updating it? I have tried with the create role but besides creating a document it also allows the user to do an update. I am using Elasticsearch version 6.3

Thsnks in advance for your help.

---

<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 12, 2018, 5:28pm UTC](https://discuss.elastic.co/t/x-pack-security-allow-only-to-create-a-document-but-not-to-update-it/148660/2 "2018-10-12T17:28:52Z")

</div>

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