# Creating Roles based on Index

**URL:** <https://discuss.elastic.co/t/creating-roles-based-on-index/157706>\
**Category:** Kibana\
**Created:** [November 21, 2018, 12:18pm UTC](https://discuss.elastic.co/t/creating-roles-based-on-index/157706 "2018-11-21T12:18:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasonespo](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)\
**Post date:** [November 21, 2018, 12:18pm UTC](https://discuss.elastic.co/t/creating-roles-based-on-index/157706/1 "2018-11-21T12:18:30Z")

</div>

Hi,

I'm using v 6.5

I don't currently have any data in my cluster so I cannot create the index patter. I know what the index pattern will be but do not wish to insert any data as of yet.

Is it possible to create the roles associated with the index such as "write access to index" before we have the data ?

I have used a PUT index.initial

And then gone to roles and my index does not appear as shown below:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/15a5cd10ef5c158f7737ac7b1504555686d4ba8a.png)

---

<div class="post-metadata">

**Author:** ![ariemenschneider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ariemenschneider/32/33564_2.png) [@ariemenschneider](https://discuss.elastic.co/u/ariemenschneider)\
**Post date:** [November 21, 2018, 4:38pm UTC](https://discuss.elastic.co/t/creating-roles-based-on-index/157706/2 "2018-11-21T16:38:03Z")

</div>

Hello,

it is possible to just type any index pattern into this input field. Thats how we set up our roles with access to indices which only a few weeks later got created in ES.

---

<div class="post-metadata">

**Author:** ![Jasonespo](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)\
**Post date:** [November 21, 2018, 5:02pm UTC](https://discuss.elastic.co/t/creating-roles-based-on-index/157706/3 "2018-11-21T17:02:46Z")

</div>

Thank you

---

<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:** [December 19, 2018, 5:02pm UTC](https://discuss.elastic.co/t/creating-roles-based-on-index/157706/4 "2018-12-19T17:02:59Z")

</div>

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