# Unable to log in kibana with the created user

**URL:** https://discuss.elastic.co/t/unable-to-log-in-kibana-with-the-created-user/195322
**Category:** Elasticsearch
**Created:** [August 15, 2019, 9:01am UTC](https://discuss.elastic.co/t/unable-to-log-in-kibana-with-the-created-user/195322 "2019-08-15T09:01:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JasonJay](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JasonJay](https://discuss.elastic.co/u/JasonJay)
#### Post date: [August 15, 2019, 9:01am UTC](https://discuss.elastic.co/t/unable-to-log-in-kibana-with-the-created-user/195322/1 "2019-08-15T09:01:58Z")

</div>

I followed the doc to create a new user: [configuring-security](https://www.elastic.co/guide/en/elasticsearch/reference/7.2/configuring-security.html)  
and I performed the following two requests

```
curl -XPOST -u elastic 'localhost:9200/_security/role/events_admin' -H "Content-Type: application/json" -d '{
 "indices" : [
{
  "names" : ["events*"],
  "privileges" : ["all"]
},
{
  "names" : [".kibana*"],
  "privileges" : ["manage", "read", "index"]
}
]
}'

curl -XPOST -u elastic 'localhost:9200/_security/user/johndoe' -H "Content-Type: application/json" -d '
{
"password" : "userpassword",
"full_name" : "John Doe",
"email" : "john.doe@anony.mous",
"roles" : ["events_admin"]
}'

```

then I use it to login kibana，kibana display json info

```
 {
    statusCode: 403,
    error: "Forbidden",
    message: "Forbidden"
}

```

my question is why I could not log in kibana with this new user， What have I done less?

---

<div class="post-metadata">

### Author: ![JasonJay](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JasonJay](https://discuss.elastic.co/u/JasonJay)
#### Post date: [August 15, 2019, 9:26am UTC](https://discuss.elastic.co/t/unable-to-log-in-kibana-with-the-created-user/195322/2 "2019-08-15T09:26:59Z")

</div>

Similarly，I create another user by kibana interface

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/7/87e5a5263282daadf4edb5e70ac4d9aa7005e41d.png)  
but the same error occured

---

<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: [September 12, 2019, 9:36am UTC](https://discuss.elastic.co/t/unable-to-log-in-kibana-with-the-created-user/195322/3 "2019-09-12T09:36:51Z")

</div>

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