# Response from X-pack Security for Role Based Control

**URL:** https://discuss.elastic.co/t/response-from-x-pack-security-for-role-based-control/111213
**Category:** Elasticsearch
**Created:** [December 12, 2017, 2:47am UTC](https://discuss.elastic.co/t/response-from-x-pack-security-for-role-based-control/111213 "2017-12-12T02:47:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ong/32/40766_2.png) [@Ong](https://discuss.elastic.co/u/Ong)
#### Post date: [December 12, 2017, 2:47am UTC](https://discuss.elastic.co/t/response-from-x-pack-security-for-role-based-control/111213/1 "2017-12-12T02:47:53Z")

</div>

I am now trying out X-pack security's role based control for document filtering.

After adding users and roles, if a user sends a term query (e.g. by document ID) to a document which he has no access to, will Elasticsearch return an error message or will it just return with 0 search results?

---

<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 9, 2018, 2:47am UTC](https://discuss.elastic.co/t/response-from-x-pack-security-for-role-based-control/111213/2 "2018-01-09T02:47:55Z")

</div>

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