Unable to authenticate roles for ldap users

I am able to authenticate the user but not the role assigned to it in role_mapping.yml file. Getting following error

{"error":{"root_cause":[{"type":"security_exception","reason":"action [cluster:monitor/main] is unauthorized for user [sanket07@detaropwmail2com.onmicrosoft.com]"}],"type":"security_exception","reason":"action [cluster:monitor/main] is unauthorized for user [sanket07@detaropwmail2com.onmicrosoft.com]"},"status":403}

AD Domain service : prospera.onmicrosoft.com
Azure AD default : detaropwmail2com.onmicrosoft.com
users:
name: sanket username: sanket07

role_mapping.yml

superuser:
  - "cn=sanket07,dc=prospera,dc=onmicrosoft,dc=com"

elasticsearch.yml

xpack:
  security:
    authc:
      realms:
        active_directory:
          my_ad:
            order: 0
            domain_name: prospera.onmicrosoft.com
            files:
              role_mapping: "/etc/elasticsearch/role_mapping.yml"

@sanket07 can you close this since your issue was resolved in Azure active directory integration with elasticsearch ?

In general, please dont open multiple topics for the same issue.

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