# Security trimming in elastic search result

**URL:** <https://discuss.elastic.co/t/security-trimming-in-elastic-search-result/125975>\
**Category:** Elasticsearch\
**Created:** [March 28, 2018, 5:12pm UTC](https://discuss.elastic.co/t/security-trimming-in-elastic-search-result/125975 "2018-03-28T17:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fengfly](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fengfly](https://discuss.elastic.co/u/fengfly)\
**Post date:** [March 28, 2018, 5:12pm UTC](https://discuss.elastic.co/t/security-trimming-in-elastic-search-result/125975/1 "2018-03-28T17:12:31Z")

</div>

We want to use Elastic Search to crawl and index the file server and then end user could search the files. However we do need the security trimming on the search result so the current end user could only see the files he is supposed to see

As far as I know that Azure Search is based on Elastic search and they are allowing index on the user AD groups and then filtering on it during search: [Azure Search Security Trimming](https://docs.microsoft.com/en-us/azure/search/search-security-trimming-for-azure-search).

As for Elastic Search security trimming support, I saw this [field and document level security](https://www.elastic.co/guide/en/shield/current/setting-up-field-and-document-level-security.html), however it is part of x-pack which is not free.

Just wonder if there is any other way to implement security trimming. Thanks very much for your expertise.

---

<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:** [April 25, 2018, 5:12pm UTC](https://discuss.elastic.co/t/security-trimming-in-elastic-search-result/125975/2 "2018-04-25T17:12:33Z")

</div>

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