# How to manage the permission of indices

**URL:** <https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350>\
**Category:** Elasticsearch\
**Created:** [August 14, 2018, 12:44pm UTC](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350 "2018-08-14T12:44:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![talon](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@talon](https://discuss.elastic.co/u/talon)\
**Post date:** [August 14, 2018, 12:44pm UTC](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350/1 "2018-08-14T12:44:40Z")

</div>

Hi  
I have a requirement  
i have enable SAML authentication in ELK, i have assigned user in different group on the AD side.  
so the SAML attributes contain the group message of user.  
so i want to assigned user different permission to access the indices.  
for example  
group A only have the read permission of index"helloworldA"  
group B have the read and write permission of index "hellowroldA"

group C only have the read permission of index"helloworldB"  
group D have the read and write permission of index"hellowroldB"

can you tell me how to configure it.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 14, 2018, 1:52pm UTC](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350/2 "2018-08-14T13:52:03Z")

</div>

This isn't a Logstash question. I suggest you edit your post and move it to the X-Pack category.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 15, 2018, 1:12am UTC](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350/3 "2018-08-15T01:12:22Z")

</div>

You need to create a role for each of the different sets of permissions you want.  
In your case it looks like you need 4 roles.

Then you use role mapping to assign different roles based on the SAML attributes.  
[Haven't we already discussed this?](https://discuss.elastic.co/t/elasticsearch-saml-integration-while-using-http-redirect/139658/39)

---

<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 12, 2018, 1:12am UTC](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350/4 "2018-09-12T01:12:24Z")

</div>

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