# What are the "certain privilege" that Kibana users need?

**URL:** <https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376>\
**Category:** Search Guard\
**Created:** [December 6, 2022, 4:46pm UTC](https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376 "2022-12-06T16:46:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@mikew](https://forum.search-guard.com/u/mikew)\
**Post date:** [December 6, 2022, 4:46pm UTC](https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376/1 "2022-12-06T16:46:45Z")

</div>

> **[Production](https://docs.search-guard.com/latest/sg-classic-config-migration-prod)**
>
> How to migrate older Kibana authentication configurations to sg\_frontend\_authc.yml with minimal outage

says:

> The new Search Guard version requires that users who shall be allowed to log into Kibana have a certain privilege

Can someone tell me what that certain privilege is?

Where can I see the definition of `SGS_KIBANA_USER` in human readable form?

In our environment we don’t have all the users that need to use Kibana mapped to `SGS_KIBANA_USER` role. The roles we use with Search Guard 7 for people who need to use Kibana were originally made by looking at the `sg_kibana_user` role in Search Guard 6 and making modifications as appropriate to our environment. (Each team users it’s own Kibana instance and we do not want teams to have permissions on all Kibana indices, for example.) But in Search Guard 6 the `sg_kibana_user` is defined in `sg_roles.yml` so one can simply look at that file to see what permissions it provides. By contrast in later versions of Search Guard `SGS_KIBANA_USER` isn’t defined in `sg_roles.yml` or anywhere else it can be found with `grep`.

---

<div class="post-metadata">

**Author:** ![nils](https://avatars.discourse-cdn.com/v4/letter/n/d6d6ee/32.png) [@nils](https://forum.search-guard.com/u/nils)\
**Post date:** [December 7, 2022, 7:47am UTC](https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376/2 "2022-12-07T07:47:59Z")

</div>

You can find the role definition here:

> **[security/src/main/resources/static\_config/static\_roles.yml · master ·...](https://git.floragunn.com/search-guard/search-guard-suite-enterprise/-/blob/master/security/src/main/resources/static_config/static_roles.yml#L24)**
>
> Enterprise features for Search Guard - https://search-guard.com

However, as said in the docs, it is not recommended to redefine such roles, as they may change and will give you thus a constant maintenance burden.

---

<div class="post-metadata">

**Author:** ![mikew](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@mikew](https://forum.search-guard.com/u/mikew)\
**Post date:** [December 7, 2022, 10:13am UTC](https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376/3 "2022-12-07T10:13:23Z")

</div>

Thanks, looks like I need to add `SGS_PERSONAL_SESSIONS` to the roles we use for people using Kibana.

Vendor recommendations and customer requirements are not always compatible. 😉 As of Kibana 8 Elastic have removed the `kibana.index` setting, which totally breaks our current way of doing Kibana where each team has it’s own Kibana instance which only they can use. So my intention is to upgrade to Search Guard FLX and then look at changing everything about how we do Kibana. As part of that I’ll look at making more use of the static roles. A quick look at it makes me think we could give all users who need Kibana access `SGS_KIBANA_USER_NO_GLOBAL_TENANT` plus an additional role which gives them permissions to their team’s indices.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/system/32/1870_2.png) [@system](https://forum.search-guard.com/u/system)\
**Post date:** [December 28, 2022, 10:13am UTC](https://forum.search-guard.com/t/what-are-the-certain-privilege-that-kibana-users-need/2376/4 "2022-12-28T10:13:41Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
