# Kibanauser role

**URL:** <https://forum.opensearch.org/t/kibanauser-role/1728>\
**Category:** Security\
**Created:** [October 16, 2019, 4:36pm UTC](https://forum.opensearch.org/t/kibanauser-role/1728 "2019-10-16T16:36:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfonsorbj](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@alfonsorbj](https://forum.opensearch.org/u/alfonsorbj)\
**Post date:** [October 16, 2019, 4:36pm UTC](https://forum.opensearch.org/t/kibanauser-role/1728/1 "2019-10-16T16:36:23Z")

</div>

Hello everyone,

It is a pleasure to be here with you. I am new using Open Distro (1.2) and have some doubts that I can’t solve by myself.

My intention is to make the user in charge of the Kibana service (by default this user is _kibanaserver_) has more privileges than _kibanaserver_ has.

To do this create a role similar to _kibanaserver_ with the new permissions added and also give it the role of _kibanauser_.

This is where doubts arise because the role of _kibanauser_ is declared as **kibana\_user**.

**Image 1. kibana\_user role**

```
curl -XGET "https://localhost:9200/_opendistro/_security/api/roles?pretty" -u admin:admin --insecure -k | sort | grep -i kibana
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 14868 100 14868 0 0 52734 0 --:--:-- --:--:-- --:--:-- 52911
    "description" : "Provide the minimum permissions for a kibana user",
    "description" : "Provide the minimum permissions for the Kibana server",
          ".kibana_*"
          ".kibana_*"
          ".kibana_*"
          ".kibana_*"
          ".kibana"
          ".kibana"
          ".kibana"
          ".kibana",
          ".kibana-6"
          ".kibana-6"
          ".kibana-6"
          ".kibana-6",
          "kibana_all_write"
  "kibana_read_only" : {
  "kibana_server" : {
  "kibana_user" : {

```

Adding the role to my user as follows:

**Image 2. Inoperative user**

It causes the following error when starting Kibana:

`{"type":"log","@timestamp":"2019-10-16T10:52:16Z","tags":["fatal","root"],"pid":3676,"message":"{ [security_exception] no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null] :: {\"path\":\"/.kibana\",\"query\":{},\"statusCode\":403,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]\\\"}],\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]\\\"},\\\"status\\\":403}\"}\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:315:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:274:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (_stream_readable.js:1103:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)\n status: 403,\n displayName: 'AuthorizationException',\n message:\n '[security_exception] no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]',\n path: '/.kibana',\n query: {},\n body:\n { error:\n { root_cause: [Array],\n type: 'security_exception',\n reason:\n 'no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]' },\n status: 403 },\n statusCode: 403,\n response:\n '{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]\"}],\"type\":\"security_exception\",\"reason\":\"no permissions for [indices:admin/get] and User [name=sito_test_kibana, roles=[test_kibana, kibana_user], requestedTenant=null]\"},\"status\":403}',\n toString: [Function],\n toJSON: [Function] }"}`

On the other hand, if I add the role as follows:

**Image 3. Effective user**

Kibana works perfectly.

So the question is, why should I add the role as **kibanauser** instead of **kibana\_user**? How do I know what **kibanauser** has?

As I am new I can only put one image, forgive me for having to do this fusion of images, but I think it helps to explain me better.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/1X/9c02d913909233cf1f987787c516f4b90936140a.png)

Thank you very much in advance,

Alfonso.

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [May 25, 2021, 8:35am UTC](https://forum.opensearch.org/t/kibanauser-role/1728/2 "2021-05-25T08:35:15Z")

</div>

Hello @alfonsorbj

Have you found a solution to this issue?

kibana\_user is a role, where kibanauser is the user assigned to that role.  
kibanaserver user is a built-in user to communicate with elasticsearch.  
If you’d like to create a new kibanserver type user you will need to assign the built-in role kibana\_server.
