Setting index level permissions makes the kibana discover/dashboard/visualize pages blank

I have created a role and want to setup index level permissions for this role. I followed the opendistro documentation and when I test it with the user, the kibana discover/visualize/dashboard pages are completely blank. I don’t see any option to switch tenant too (I have just the global_tenant and the admin_tenant)

If for the same role I remove the index pattern, I see all the indices in the discover page and the visualize and dashboards page also shows up normally.

Following is the role I had created. If in the same role I change the value of index patterns from “logstash-" to "”, it works as I mentioned above.

{
“index_permissions”: [
{
“index_patterns”: [
“logstash-"
],
“dls”: “”,
“fls”: [],
“masked_fields”: [],
“allowed_actions”: [
“read”,
“search”
]
}
],
“tenant_permissions”: [
{
“tenant_patterns”: [
"

],
“allowed_actions”: [
“kibana_all_write”
]
},
{
“tenant_patterns”: [
“global_tenant”
],
“allowed_actions”: [
“kibana_all_write”
]
}
],
“cluster_permissions”:
}

Any help is greatly appreciated.

Thanks,
Aravind

The index level permissions work when I try to search using the dev tools panel in kibana, but the discover/visualize/dashboard pages are still showing blank

I used the following, but it sure feels like a violation of the Principle of Least Privilige:

JSON

{
“cluster_permissions”: [
“cluster_composite_ops”
],
“index_permissions”: [
{
“index_patterns”: [
“your-index-here”
],
“dls”: “”,
“fls”: ,
“masked_fields”: ,
“allowed_actions”: [
“read”
]
},
{
“index_patterns”: [
“.kibana”,
“.kibana-6”,
“.kibana_*”
],
“dls”: “”,
“fls”: ,
“masked_fields”: ,
“allowed_actions”: [
“read”,
“delete”,
“manage”,
“index”
]
}
]
}

I’d appreciate more guidance too.

Todd