Discover: no permissions for [indices:data/read/search] and User [name=user, roles=[]]

When asking questions, please provide the following information:

  • Search Guard and Elasticsearch version

  • Installed and used enterprise modules, if any

  • JVM version and operating system version

  • Search Guard configuration files

  • Elasticsearch log messages on debug level

  • Other installed Elasticsearch or Kibana plugins, if any

Hi Team,

I am getting below error,

Discover: no permissions for [indices:data/read/search] and User [name=user, roles=]

Search guard and Elasticsearch version:elasticsearch-5 and search-guard-5

search guard cofiguration:

sg_roles.yml

sg_plus_rw:

indices:

'plus*':

  '*':

    - READ

    - WRITE

'?kibana':

    '*':

      - READ

      - WRITE

sg_roles_mapping.yml

sg_plus_rw:

users:

  • user

sg_internal_users.yml

user:

hash: $2a$12$Vf7.tDfMK/tNgToXhQ1XyexDwCtvdIdGojLaKpNDXuRVpAhilvkve

Please do the neeful.