Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Open Search and Dashboard 2.15
Describe the issue:
When i am adding document level security in the role for the logged in user, i am not able to see the index pattern and thus dashboard for non-admin user. Please find the error and role configuration.
Error:
log [12:58:14.758] [error][data][opensearch] [security_exception]: no permissions for [indices:data/write/index, indices:data/write/bulk[s]] and User [name=supplier-user-ro, backend_roles=[epcis_Index_ro], requestedTenant=]
Role configuration
{
"cluster_permissions": [
"indices:data/write/bulk",
"cluster_composite_ops_ro",
"cluster:admin/opendistro/ism/policy/search",
"cluster:monitor/state",
"cluster:monitor/health",
"cluster_composite_ops"
],
"index_permissions": [
{
"index_patterns": [
"epcis*",
".kibana*"
],
"allowed_actions": [
"read",
"indices:monitor/settings/get",
"indices:monitor/stats",
"monitor",
"indices:admin/data_stream/get",
"indices:monitor/recovery",
"indices:data/read/get",
"indices:data/read/search",
"indices:data/write/index",
"indices:data/write/bulk"
],
"dls": "{\"term\": {\"billto_gln\": \"0847976000045\"}}"
}
],
"tenant_permissions": [
{
"tenant_patterns": ["global_tenant"],
"allowed_actions": ["kibana_all_write", "kibana_all_read"]
}
]
}
Can somebody guide me what is wrong or how to resolve this issue. Basic intention is that logged in user should see the document details corresponding to DLS applied in the dash board.
Configuration:
Relevant Logs or Screenshots: