I am currently using Shield to auth users with PKI. Currently when a user with a CN: John Doe jdoe navigates to /_search, the exception:
reason: action [indices:data/read/search] is unauthorized for user [John Doe jdoe]
In the access log, it shows that
access_denied, principal = [John Doe jdoe], action = [indices:data/read/search], indices=
How do I create a role for this user and assign it to this user so shield can recognize it and show the appropriate data? I tried to add it in users_roles.yml like below:
admin:John Doe jdoe, es_admin
But have no luck. Is it because the empty spaces or other problems?