# Check access to a document

**URL:** <https://discuss.elastic.co/t/check-access-to-a-document/212038>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [December 16, 2019, 4:49pm UTC](https://discuss.elastic.co/t/check-access-to-a-document/212038 "2019-12-16T16:49:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriscowin](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chriscowin](https://discuss.elastic.co/u/chriscowin)\
**Post date:** [December 16, 2019, 4:49pm UTC](https://discuss.elastic.co/t/check-access-to-a-document/212038/1 "2019-12-16T16:49:40Z")

</div>

Is it possible to take an ElasticSearch document ID and make an API call that will return a list of all users with access to read that document?

Specifically, I am using document level security in combination with wildcards.

---

<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:** [December 16, 2019, 8:47pm UTC](https://discuss.elastic.co/t/check-access-to-a-document/212038/2 "2019-12-16T20:47:47Z")

</div>

No, that is not possible.

Depending on the type of authentication system you have (Native Realm/AD/SAML/etc) and the number of uses you have you might be able to build something using ES APIs, but it's not something that's provided directly.

---

<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 13, 2020, 8:48pm UTC](https://discuss.elastic.co/t/check-access-to-a-document/212038/3 "2020-01-13T20:48:28Z")

</div>

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