# Failed to parse role mappings file

**URL:** <https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414>\
**Category:** Elasticsearch\
**Created:** [March 29, 2017, 6:39am UTC](https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414 "2017-03-29T06:39:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tausif786](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tausif786](https://discuss.elastic.co/u/tausif786)\
**Post date:** [March 29, 2017, 6:39am UTC](https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414/1 "2017-03-29T06:39:07Z")

</div>

Hi I have added  
superuser:

- "cn=user,dc=xyz,dc=com"  
in role\_mapping.yml

but i am getting error in elasticsearch.log saying "failed to parse role mappings file [D:\kibana\elasticsearch-5.2.2\elasticsearch-5.2.2\config\x-pack\role\_mapping.yml]. skipping/removing all mappings..."  
i can login my AD user through kibana interface. but when mapping the user to a role it wont work.  
Please Help.

---

<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 29, 2017, 10:04am UTC](https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414/2 "2017-03-29T10:04:34Z")

</div>

Usually there will be additional details after that error message that explain why the file could not be parsed.

What is in your log file immediately after that error?

---

<div class="post-metadata">

**Author:** ![tausif786](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tausif786](https://discuss.elastic.co/u/tausif786)\
**Post date:** [March 29, 2017, 10:53am UTC](https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414/3 "2017-03-29T10:53:13Z")

</div>

this is the message after that  
"org.elasticsearch.ElasticsearchParseException: null-valued setting found for key [superuser] found at line number [24], column number [14]"

---

<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 26, 2017, 10:53am UTC](https://discuss.elastic.co/t/failed-to-parse-role-mappings-file/80414/4 "2017-04-26T10:53:16Z")

</div>

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