# How to create users in Kibana and enable role management in Kibana?

**URL:** https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [January 31, 2019, 9:49am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514 "2019-01-31T09:49:38Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![aditya\_kanekar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aditya\_kanekar](https://discuss.elastic.co/u/aditya_kanekar)
#### Post date: [January 31, 2019, 9:49am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/1 "2019-01-31T09:49:38Z")

</div>

Continuing the discussion from [Kibana Management missing Role Management](https://discuss.elastic.co/t/kibana-management-missing-role-management/112878/8):

We are using ELk Stack 6.5 and after activating trial X-PACK license, we still can't see Kibana Role Management.

1. Checked the license status its active
2. Enabled x-pack in elasticsearch.yml file,  
`xpack.security.enabled: true`

Note - I am using the default user created during installation for logging into Kibana.

After I enable the xpack security the default user created during installation stops working in Kibana. I tried creating users in elastic search using

`bin/elasticsearch-users useradd <username> -p <password> -r kibana_user`

But I am not able to login using this user in Kibana.

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [January 31, 2019, 12:03pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/2 "2019-01-31T12:03:49Z")

</div>

Please don't imply a connection where there is none. The original question mentioned Elasticsearch 6.1 , and you are running 6.5.3. Not all the questions in the last message of @Christian_Dahlqvist are relevant now as X-Pack is already included but :

- [verified that the current license is a valid trial license](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-license.html) ?
- [verified that security is enabled in the Elasticsearch config](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-security.html) ?

> Nor the Elastic Search security works

You will have to add some more information to this, as the "it does not work" is not enough for us to offer any meaningful suggestions.

---

<div class="post-metadata">

### Author: ![aditya\_kanekar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aditya\_kanekar](https://discuss.elastic.co/u/aditya_kanekar)
#### Post date: [January 31, 2019, 12:27pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/3 "2019-01-31T12:27:15Z")

</div>

I have modified the post with more details. Yes I did check if the license is Active and the license is trial.

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [January 31, 2019, 12:46pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/4 "2019-01-31T12:46:36Z")

</div>

> [@aditya\_kanekar](#):
>
> Note - I am using the default user created during installation for logging into Kibana.

There is no specific default user created during installation in Elasticsearch. There are a number of [built-in users](https://www.elastic.co/guide/en/elastic-stack-overview/6.5/built-in-users.html) but you first need to set their passwords in order to use them. Which user are you talking about ?

> [@aditya\_kanekar](#):
>
> the default user created during installation stops working in Kibana.

If you say "stops" working, then I am assuming it was working before? What was an indication that it worked before? Did you login with that user to Kibana via the login form?

Can you share some information on how you installed Elasticsearch (zip/tar archives ? .deb / .rpm ? docker? ) and what is your Operating System ?

> Checked the license status its active

Can you share the output of the [request to `_xpack/license` endpoint](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-license.html#_examples_21) that you made?

> [@aditya\_kanekar](#):
>
> Enabled x-pack in elasticsearch.yml file,  
> `xpack.security.enabled: true`

Did you restart Elasticsearch after setting that ?

---

<div class="post-metadata">

### Author: ![aditya\_kanekar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aditya\_kanekar](https://discuss.elastic.co/u/aditya_kanekar)
#### Post date: [January 31, 2019, 1:05pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/5 "2019-01-31T13:05:40Z")

</div>

I have installed Elastic Search using deb packages following the instructions in this article,

> **[How To Install Elasticsearch, Logstash, and Kibana (Elastic Stack) on Ubuntu...](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04)**
>
> In this tutorial, we will go over the installation of the Elastic Stack on an Ubuntu 18.04 server. You will learn how to install all the components of the Elastic Stack (including Filebeat, a Beat used for forwarding and centralizing logs and files)...

I created a user for Kiabna using following command,

`echo "kibanaadmin:`openssl passwd -apr1`" | sudo tee -a /etc/nginx/htpasswd.users`

When I said it stops working I meant the user I created in the above step is not letting me login in Kibana.

Output of the license status,  
`{ "license" : { "status" : "active", "uid" : "9c1c5767-c31a-4dd9-b7f8-725251fe5049", "type" : "trial", "issue_date" : "2019-01-18T10:21:18.504Z", "issue_date_in_millis" : 1547806878504, "expiry_date" : "2019-02-17T10:21:18.504Z", "expiry_date_in_millis" : 1550398878504, "max_nodes" : 1000, "issued_to" : "elasticsearch", "issuer" : "elasticsearch", "start_date_in_millis" : -1 } }`

I did restart Elastic Search after creating the user using elasticsearch-users command.

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [January 31, 2019, 1:44pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/6 "2019-01-31T13:44:58Z")

</div>

> [@aditya\_kanekar](#):
>
> I have installed Elastic Search using deb packages following the instructions in this article,

This document instructs you to use nginx in front of Kibana to authenticate the users. This might have been a valid option when you didn't have security enabled but there really is _no_ reason for you to keep nginx. Kibana can handle the authentication itself.

> [@aditya\_kanekar](#):
>
> `echo "kibanaadmin:` openssl passwd -apr1 `" | sudo tee -a /etc/nginx/htpasswd.users`

As you can see from the command you entered, this is _not_ a Kibana user, it is an **nginx** user.

My suggestion is to remove nginx and follow our [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-security.html) for configuring security for the Elastic stack

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [January 31, 2019, 1:47pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/7 "2019-01-31T13:47:11Z")

</div>

Also, can you please modify the title to something more helpful for other people viewing / answering in these forums? Your problem has very little to do with role management and the issue you linked to in the first post.

Thanks!

---

<div class="post-metadata">

### Author: ![aditya\_kanekar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aditya\_kanekar](https://discuss.elastic.co/u/aditya_kanekar)
#### Post date: [January 31, 2019, 2:06pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/8 "2019-01-31T14:06:54Z")

</div>

My original question was how do I see the user Management in Kibana? How do I see this screen?

[https://www.elastic.co/guide/en/cloud-enterprise/current/users-manage-x-pack.html](https://www.elastic.co/guide/en/cloud-enterprise/current/users-manage-x-pack.html)

Or is itonly available in Elastic Cloud Enterprise Edition?

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [January 31, 2019, 2:41pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/9 "2019-01-31T14:41:45Z")

</div>

It is also available in the on premises (non cloud) versions, assuming that security is enabled in Kibana and Elasticsearch.

What we have been trying to help you achieve in this thread is to enable security in Kibana and Elasticsearch. Please follow my suggestions from [above](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/6)

---

<div class="post-metadata">

### Author: ![aditya\_kanekar](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@aditya\_kanekar](https://discuss.elastic.co/u/aditya_kanekar)
#### Post date: [February 1, 2019, 1:19pm UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/10 "2019-02-01T13:19:40Z")

</div>

Thank you, I followed your instructions and now I am able to see User Management in Kibana and I could also create new users.

---

<div class="post-metadata">

### Author: ![Amitittech](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Amitittech](https://discuss.elastic.co/u/Amitittech)
#### Post date: [February 5, 2019, 10:51am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/11 "2019-02-05T10:51:46Z")

</div>

Hi @aditya_kanekar

Me too facing the same problem as you had.

How you resolved ?

---

<div class="post-metadata">

### Author: ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)
#### Post date: [February 5, 2019, 11:00am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/12 "2019-02-05T11:00:14Z")

</div>

@Amitittech please don't hijack other people threads. It would be better if you open a new topic where you would post also some details about:

- What version are you using?
- What are you trying to do?
- What have you done so far? Show us the relevant parts of your configuration.
- What are you expecting to happen that doesn't , and what happens instead?
- What are the error messages if any?
- Are there any logs from elasticsearch to share?

---

<div class="post-metadata">

### Author: ![Amitittech](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Amitittech](https://discuss.elastic.co/u/Amitittech)
#### Post date: [February 5, 2019, 11:02am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/13 "2019-02-05T11:02:16Z")

</div>

okay.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 5, 2019, 11:02am UTC](https://discuss.elastic.co/t/how-to-create-users-in-kibana-and-enable-role-management-in-kibana/166514/14 "2019-03-05T11:02:27Z")

</div>

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