# Kibana User Roles, kibana\_dashboard\_only and Limit Spaces?

**URL:** <https://discuss.elastic.co/t/kibana-user-roles-kibana-dashboard-only-and-limit-spaces/161905>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [December 21, 2018, 11:36pm UTC](https://discuss.elastic.co/t/kibana-user-roles-kibana-dashboard-only-and-limit-spaces/161905 "2018-12-21T23:36:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 27, 2018, 9:18pm UTC](https://discuss.elastic.co/t/kibana-user-roles-kibana-dashboard-only-and-limit-spaces/161905/4 "2018-12-27T21:18:59Z")

</div>

The `kibana_dashboard_only_user` from the permissions perspective gives the user read-only access to all of Kibana. To have Kibana hide all of the other applications besides the Dashboards app, the Kibana advanced setting: `xpackDashboardMode:roles` should be configured to list this role so that all other applications are hidden.

To create a new custom role which grants read-only access to a single space, you can use a cURL request similar to the following against the [Kibana Role API](https://www.elastic.co/guide/en/kibana/current/role-management-api.html)

```auto
curl -H "kbn-xsrf:true" -H "content-type:application/json" -u elastic:changeme -X PUT http://localhost:5601/api/security/role/engineering_dashboard_only_mode -d '
{
  "kibana": {
    "space": {
      "engineering": ["read"]
    }
  }
}
'

```

Then, to configure dashboard only mode to be enabled for this role, you'll want to log into Kibana, select the Space which you're just granted access to, and go to Management -\> Advanced Settings. On the advanced settings page, you'll want to change the `xpackDashboardMode:roles` setting to list your newly created role:

 ![40%20PM](https://us1.discourse-cdn.com/elastic/original/3X/3/9/39eccc1e6658ab8fee8675bbc1fb1f0e4eb73b8b.png)

---

_[View the full topic](https://discuss.elastic.co/t/kibana-user-roles-kibana-dashboard-only-and-limit-spaces/161905)._
