Having issues mapping roles to AD users elasticsearch

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

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

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.