Roles and users

hello, I am using OpenSearch 1.2
I created this role:

{
“read_only_index” : {
“reserved” : false,
“hidden” : false,
“cluster_permissions” : [
“cluster_composite_ops_ro”,
“indices:data/read/search*”,
“cluster_all”
],
“index_permissions” : [
{
“index_patterns” : [
“us-east-2*”,
“vblogger*”
],
“dls” : “”,
“fls” : ,
“masked_fields” : ,
“allowed_actions” : [
“read”,
“indices:data/read/search*”,
“cluster_all”,
“get”,
“indices:data/read/msearch”
]
}
],
“tenant_permissions” : [
{
“tenant_patterns” : [
“global_tenant”
],
“allowed_actions” : [
“kibana_all_write”
]
}
],
“static” : false
}
}

trying to see the logs on discover but its empty and return the error: {“statusCode”:403,“error”:“Forbidden”,“message”:“no permissions for [indices:data/read/search] and User [name=test, backend_roles=, requestedTenant=]: security_exception”}

how can I create a role that is allowed only to view the opensearch dashboard including the discover page?

thank you

@chen Try one of the below.

  1. add .kibana to the index list
  2. add the kibana_user role to your user.

adding .kibana solved it, thanks