# How to limit the result count for a role with x-pack

**URL:** https://discuss.elastic.co/t/how-to-limit-the-result-count-for-a-role-with-x-pack/179610
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [May 4, 2019, 8:59am UTC](https://discuss.elastic.co/t/how-to-limit-the-result-count-for-a-role-with-x-pack/179610 "2019-05-04T08:59:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iamazy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iamazy/32/36501_2.png) [@iamazy](https://discuss.elastic.co/u/iamazy)
#### Post date: [May 4, 2019, 8:59am UTC](https://discuss.elastic.co/t/how-to-limit-the-result-count-for-a-role-with-x-pack/179610/1 "2019-05-04T08:59:16Z")

</div>

hello,  
for example, I want to set a role only has read 10 doc privileges，but I found that there is no way to set size by updating role

what should i do？  
thanks

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 4, 2019, 9:31am UTC](https://discuss.elastic.co/t/how-to-limit-the-result-count-for-a-role-with-x-pack/179610/2 "2019-05-04T09:31:39Z")

</div>

Never heard about such a use case which is not about the content of documents but the numbers of documents whatever content.

---

<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: [June 1, 2019, 9:31am UTC](https://discuss.elastic.co/t/how-to-limit-the-result-count-for-a-role-with-x-pack/179610/3 "2019-06-01T09:31:55Z")

</div>

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