# X-Pack Role Based Access to Index/Indices

**URL:** <https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 11:06am UTC](https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085 "2018-06-15T11:06:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![helper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/helper/32/9484_2.png) [@helper](https://discuss.elastic.co/u/helper)\
**Post date:** [June 15, 2018, 11:06am UTC](https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085/1 "2018-06-15T11:06:17Z")

</div>

I am looking for some help setting up index based privileges to the user.

I have create 2 or 3 Indexes. Created 2 users. Created a group and set Monitor as cluster privileges and Index privilege as Read and Monitor

But I was trying to login as user to see the index allocated but in kibana cant see any thing under discovery.  
It throws

Error : Config: Error 403 Forbidden: action [indices:data/write/update] is unauthorized for user [xxx]: [security\_exception] action [indices:data/write/update] is unauthorized for user [xxx]  
OK

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 16, 2018, 1:15pm UTC](https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085/2 "2018-06-16T13:15:30Z")

</div>

Can you show the roles you have defined for these indices and which roles the users are mapped to?

---

<div class="post-metadata">

**Author:** ![helper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/helper/32/9484_2.png) [@helper](https://discuss.elastic.co/u/helper)\
**Post date:** [June 18, 2018, 9:08am UTC](https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085/3 "2018-06-18T09:08:27Z")

</div>

Thanks Christian. I have managed to work it out.

The issue here was, the user was not assigned to the kibana\_user group.

Now I can see, two sample indexes have been configured is working as expected.

---

<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:** [July 16, 2018, 9:08am UTC](https://discuss.elastic.co/t/x-pack-role-based-access-to-index-indices/136085/4 "2018-07-16T09:08:29Z")

</div>

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