Based on: Users and Roles - Open Distro Documentation
I added a read only user which is able to view created dashboards and create on demand reports via the reporting function.
The kibana_user
and kibana_read_only
role are mapped to this user as well as this custom logstash_data_ro
role.
PUT _opendistro/_security/api/roles/logstash_data_ro
{
"cluster_permissions" : [
"cluster_composite_ops_ro",
"cluster:admin/opendistro/reports/menu/download"
],
"index_permissions" : [
{
"index_patterns" : [
"logstash-*"
],
"dls" : "",
"fls" : [ ],
"masked_fields" : [ ],
"allowed_actions" : [
"read"
]
}
],
"tenant_permissions" : [
{
"tenant_patterns" : [
"*"
],
"allowed_actions" : [
"kibana_all_read"
]
}
]
}
How can I create a second role/user that is able to modify, create and delete dashboards and visualizations without granting further privileges to accessing settings.
I probably need the same logstash_data_ro
role and build a custom kibana_dashboard_user
role.
PUT _opendistro/_security/api/roles/kibana_dashboard_user
{
"cluster_permissions" : [
"cluster_composite_ops" <—— This permission group is probably to wide, but I can not find information which permission is used for visualizations
],
"index_permissions" : [
{
"index_patterns" : [
".kibana",
".kibana-6",
".kibana_*"
],
"fls" : [ ],
"masked_fields" : [ ],
"allowed_actions" : [
"read",
"delete",
"manage",
"index"
]
},
{
"index_patterns" : [
],
"fls" : [ ],
"masked_fields" : [ ],
"allowed_actions" : [
“crud”
]
}
}
Bonus questions: How can I grant access to the notebooks plugin for non admin users to either of these roles?
Adding ”.notebooks”
does not make any difference I still do not see the Notebooks
menu entry. I suppose I have to add a permission to access notebooks but a dedicated notebook permission does not seem to exist.
Thank you for any suggestions.