Hello! This is my issue:
I try to setup a multi-tenancy system in my Kibana, describe as follow:
AS IS ENV
Index: twitter_index, .kibana
Dashboards: 1,2,3,4 (stored in .kibana)
TO BE ENV (I would like 2 different kibana users that will create different dashboards for future dashboards only users)
Index: twitter_index, .kibana, .kibana-2, .kibana-3
Custom roles definitions:
kibana_user_role_2 (Q: stored in .security-6?)
kibana_user_role_3 (Q: stored in .security-6?)
User definitions:
U: marco R: kibana_user_role_2
U: roberto R: kibana_user_role_3
Dashboards: 1,2 (stored in .kibana-2), 3,4 (stored in .kibana-3)
So here are the steps I followed:
- I created .kiban-a2 index with no mappings. Q: should I do it or kibana will create it automatically later?
 - I logged as elastic (superuser) and created kibana_user_role_2 in this way (it’s like a default kibana_user but with different index privileges):
 
This is the output from security API:
"kibana_user_role_2" : {
"cluster" : [ ],
"indices" : [
  {
    "names" : [
      ".kibana-2"
    ],
    "privileges" : [
      "manage",
      "read",
      "index",
      "delete"
    ],
    "field_security" : {
      "grant" : [ ]
    }
  }
],
"run_as" : [ ],
"metadata" : { },
"transient_metadata" : {
  "enabled" : true
}
}
What I expect now is that marco user will be able to create and store dashboards inside .kibana-2 index, but when I login I get the following message when opening Discover tab:
Config: Error 403 Forbidden: action [indices:data/write/update] is unauthorized for user [marco]: [security_exception] action [indices:data/write/update] is unauthorized for user [marco]
What am I missing?
Thanks!!


