# How to find the number of roles and users defined in elastic search

**URL:** https://discuss.elastic.co/t/how-to-find-the-number-of-roles-and-users-defined-in-elastic-search/211812
**Category:** Elasticsearch
**Created:** [December 13, 2019, 3:31pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-roles-and-users-defined-in-elastic-search/211812 "2019-12-13T15:31:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shri\_palchuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shri_palchuri/32/51976_2.png) [@shri\_palchuri](https://discuss.elastic.co/u/shri_palchuri)
#### Post date: [December 13, 2019, 3:31pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-roles-and-users-defined-in-elastic-search/211812/1 "2019-12-13T15:31:20Z")

</div>

I can use /\_security/role/ to get the details of a specific role, is there any syntax to get the number of roles defined?

---

<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 10, 2020, 3:31pm UTC](https://discuss.elastic.co/t/how-to-find-the-number-of-roles-and-users-defined-in-elastic-search/211812/2 "2020-01-10T15:31:31Z")

</div>

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