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"