# Authorization implementation on elastic search results

**URL:** <https://discuss.elastic.co/t/authorization-implementation-on-elastic-search-results/285975>\
**Category:** Elasticsearch\
**Created:** [October 6, 2021, 4:53am UTC](https://discuss.elastic.co/t/authorization-implementation-on-elastic-search-results/285975 "2021-10-06T04:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hafoosdev](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hafoosdev](https://discuss.elastic.co/u/hafoosdev)\
**Post date:** [October 6, 2021, 4:53am UTC](https://discuss.elastic.co/t/authorization-implementation-on-elastic-search-results/285975/1 "2021-10-06T04:53:48Z")

</div>

We have a requirement to show/hide data to logged in User based on User permissions on each record that we have in Elasticsearch. The algorithm to check if the User has permissions on a given record requires to check multiple things and is dynamic in nature that can change anytime. Is there any design pattern on how to implement this

---

<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:** [November 3, 2021, 4:54am UTC](https://discuss.elastic.co/t/authorization-implementation-on-elastic-search-results/285975/2 "2021-11-03T04:54:01Z")

</div>

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