# Create user roles in ELK 5.2.2

**URL:** <https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229>\
**Category:** Elasticsearch\
**Created:** [March 28, 2017, 3:20am UTC](https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229 "2017-03-28T03:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashik\_Mohammed](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Ashik\_Mohammed](https://discuss.elastic.co/u/Ashik_Mohammed)\
**Post date:** [March 28, 2017, 3:20am UTC](https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229/1 "2017-03-28T03:20:00Z")

</div>

Hello,  
I have setup ELK 5.2.2 and installed x-pack plugin for implementing access controls. I can see some built in user roles.

I need to create two user roles. Following are the requirements

## User1(Admin)

- Can create/delete/modify dashboards
- Can create/delete/modify indexes

## User2(Normal User)

- Can only read dashboards
- Can search indexes

Anybody have ideas how to implement this. When I try to define a user, that user cannot see anything other than a blank white page in the kibana.

Tried to put some roles in roles.yml. But, these roles cannot be viewed in the kibana for assigning to a user.

---

<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:** [March 31, 2017, 7:01am UTC](https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229/2 "2017-03-31T07:01:57Z")

</div>

I've moved this post to the X-Pack forum.

---

<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:** [March 31, 2017, 7:10am UTC](https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229/3 "2017-03-31T07:10:00Z")

</div>

Kibana users need access to the `.kibana` index. Look at the default `kibana_user` role to see what this looks like for a user that is allowed to view, create and update kibana objects. Based on this you could create a `kibana_readonly_user` role, which does only have read privileges on the `.kibana` index. For each Kibana user, then assign one of these roles depending on access level.

---

<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:** [April 28, 2017, 7:10am UTC](https://discuss.elastic.co/t/create-user-roles-in-elk-5-2-2/80229/4 "2017-04-28T07:10:04Z")

</div>

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