# Having issues mapping roles to AD users elasticsearch

**URL:** https://discuss.elastic.co/t/having-issues-mapping-roles-to-ad-users-elasticsearch/185362
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [June 12, 2019, 8:51am UTC](https://discuss.elastic.co/t/having-issues-mapping-roles-to-ad-users-elasticsearch/185362 "2019-06-12T08:51:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ilakia\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilakia_r/32/45136_2.png) [@Ilakia\_R](https://discuss.elastic.co/u/Ilakia_R)
#### Post date: [June 12, 2019, 8:51am UTC](https://discuss.elastic.co/t/having-issues-mapping-roles-to-ad-users-elasticsearch/185362/1 "2019-06-12T08:51:49Z")

</div>

I had configured role mapping api for some users...it reflect for some people not reflected for others. What may be the reason?

And do we map roles to particular DL

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [June 12, 2019, 1:01pm UTC](https://discuss.elastic.co/t/having-issues-mapping-roles-to-ad-users-elasticsearch/185362/2 "2019-06-12T13:01:55Z")

</div>

> [@Ilakia\_R](#):
>
> And do we map roles to particular DL

Can you explain what `DL` is ?

There is hardly anything in your message that would allow us to assist you. Please share _at minimum_ :

- The role mapping that you have issues with
- What "it reflect for some people not reflected for others." exactly means
- What behavior you were expecting to see and what are you seeing instead ?

You can enable debug logging for the mapping process with

```auto
PUT /_cluster/settings
{
  "transient": {
    "logger.org.elasticsearch.xpack.security.authc.support.mapper": "trace"
  }
} 

```

and see the elasticsearch logs for more information on why the role mapping fails.

---

<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 10, 2019, 1:01pm UTC](https://discuss.elastic.co/t/having-issues-mapping-roles-to-ad-users-elasticsearch/185362/3 "2019-07-10T13:01:58Z")

</div>

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