# 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:** 1\
**Showing post:** 3

<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)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-manage-the-permission-of-indices/144350)._
