# Roles with different access to index'ss

**URL:** <https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 17, 2022, 11:00am UTC](https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272 "2022-08-17T11:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barca88](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barca88/32/109771_2.png) [@Barca88](https://discuss.elastic.co/u/Barca88)\
**Post date:** [August 17, 2022, 11:00am UTC](https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272/1 "2022-08-17T11:00:53Z")

</div>

I am newbie with elastic and after watching some tutorials I started digging around and fund this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/9/59ed24315128c7075f0ef37a849f61f60f83d28c.png)

**Is it possible with the free and open subscription, having different roles that can only access to a specific index and not to the others?**

Or limit the access to different index's based on the user role?

Imagine this index's:

- grandparents
- parents
- childrens

Imagine this roles:

- granny
- father
- child

Access:

- granny - can access to all index's but on parents index only have permissions to read
- father - can access to parents and childrens index's
- son - can only access to children index

Best Regards,  
Marco Gonçalves

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 22, 2022, 12:36am UTC](https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272/2 "2022-08-22T00:36:50Z")

</div>

Welcome to our community! 😃

Yes, this is possible - [User authorization | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/authorization.html)

---

<div class="post-metadata">

**Author:** ![Barca88](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barca88/32/109771_2.png) [@Barca88](https://discuss.elastic.co/u/Barca88)\
**Post date:** [September 1, 2022, 10:07am UTC](https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272/3 "2022-09-01T10:07:19Z")

</div>

I already understand how the roles can give full access to an index.

But, it is possible to the user that is a child have read access only the entrance of there parents in the parents index?

As, it can't read the all parents index but it can read there 2 parents entrances.

---

<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:** [September 29, 2022, 10:08am UTC](https://discuss.elastic.co/t/roles-with-different-access-to-indexss/312272/4 "2022-09-29T10:08:13Z")

</div>

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