This means that the logged in user doesn't have the right set of privileges. When and where do you see that error? In Kibana? When you log in? Or in a log file?
To Just use Kibana and have access to the data in an index, a user would typically only require;
- a role with
view_index_metadata privs on that particular index (and no cluster privs)
You could turn on audit logging in your Elasticsearch cluster and that would show you what user it is getting the error and what index they are accessing.
You could also query Elasticsearch for your users and roles and paste it here so we could check that you really have everything set correctly.
curl -XGET http://localhost:9200/_xpack/security/role?pretty
curl -XGET http://localhost:9200/_xpack/security/user?pretty
Please let us know if that helps.