# Not able to create role mapping in kibana

**URL:** <https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472>\
**Category:** Kibana\
**Created:** [March 11, 2022, 3:43pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472 "2022-03-11T15:43:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amisha\_Thakkar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amisha_thakkar1/32/98491_2.png) [@Amisha\_Thakkar1](https://discuss.elastic.co/u/Amisha_Thakkar1)\
**Post date:** [March 11, 2022, 3:43pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472/1 "2022-03-11T15:43:34Z")

</div>

I have assigned one user as superuser and I am trying to search for role mapping under stack management in Kibana. But I am not able to see that. Even I tried to assign role using role mapping api. Still not able to login with role mapping.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 11, 2022, 6:19pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472/2 "2022-03-11T18:19:14Z")

</div>

Hi  
What errors are you seeing ? On Elasticsearch master, have you added it to role mapping.yml . You cannot simply edit the file on the master node, it needs to exist on every node that can perform authentication (which is most clusters is every node). My _guess_ is that your elected master node doesn't have the realms configured.

More documentation : [Role mappings | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/role-mappings.html)

copying @jportner for more insights

---

<div class="post-metadata">

**Author:** ![Amisha\_Thakkar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amisha_thakkar1/32/98491_2.png) [@Amisha\_Thakkar1](https://discuss.elastic.co/u/Amisha_Thakkar1)\
**Post date:** [March 11, 2022, 8:40pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472/3 "2022-03-11T20:40:21Z")

</div>

I am seeing this error  
Realms [active\_directory] were skipped because they are not permitted on the current license

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 11, 2022, 8:44pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472/4 "2022-03-11T20:44:37Z")

</div>

That's pretty self explanatory, you can't use any LDAP type role mapping without a higher license.

> **[Subscriptions | Elastic Stack Products & Support | Elastic](https://www.elastic.co/subscriptions)**
>
> See subscription levels, pricing, and tiered features for on-prem deployments of the Elastic Stack (Elasticsearch Kibana, Beats, and Logstash), Elastic Cloud, and Elastic Cloud Enterprise.

Line LDAP, PKI3, Active Directory authentication

---

<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 8, 2022, 8:45pm UTC](https://discuss.elastic.co/t/not-able-to-create-role-mapping-in-kibana/299472/5 "2022-04-08T20:45:16Z")

</div>

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