# How to map LDAP users with roles in kibana

**URL:** https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222
**Category:** Kibana
**Created:** [October 9, 2017, 12:28pm UTC](https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222 "2017-10-09T12:28:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ajit](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ajit](https://discuss.elastic.co/u/ajit)
#### Post date: [October 9, 2017, 12:28pm UTC](https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222/1 "2017-10-09T12:28:11Z")

</div>

I have implemented x pack as well as LDAP security in elasticsearch. But I am not able to assign roles for particular user (Existing users in LDAP active directory.) How to assign roles for existing users in kibana. Please provide solution.

---

<div class="post-metadata">

### Author: ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)
#### Post date: [October 9, 2017, 5:46pm UTC](https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222/2 "2017-10-09T17:46:30Z")

</div>

The documentation regarding role mapping can be found here:  
[https://www.elastic.co/guide/en/x-pack/5.6/mapping-roles.html](https://www.elastic.co/guide/en/x-pack/5.6/mapping-roles.html)  
You can either use the api or role\_mapping.yml file

You cannot map roles to ldap users using kibana management user interface for ldap realm

---

<div class="post-metadata">

### Author: ![ajit](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ajit](https://discuss.elastic.co/u/ajit)
#### Post date: [October 11, 2017, 11:31am UTC](https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222/3 "2017-10-11T11:31:52Z")

</div>

Thanks, I have used role mapping api and I can assign roles to users.

---

<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: [November 8, 2017, 11:31am UTC](https://discuss.elastic.co/t/how-to-map-ldap-users-with-roles-in-kibana/103222/4 "2017-11-08T11:31:59Z")

</div>

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