# Not able to create new user in kibana dashboard by the help of api

**URL:** https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296
**Category:** Kibana
**Created:** [September 12, 2019, 5:10pm UTC](https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296 "2019-09-12T17:10:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GRV](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@GRV](https://discuss.elastic.co/u/GRV)
#### Post date: [September 12, 2019, 5:10pm UTC](https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296/1 "2019-09-12T17:10:13Z")

</div>

I am using kibana version 7.3, elastic search version 7.3  
I am trying to create user through API.  
PUT /\_security/user/jacknich  
{  
"password" : "j@rV1s",  
"roles" : ["admin", "other\_role1"],  
"full\_name" : "Jack Nicholson",  
"email" : "jacknich@example.com",  
"metadata" : {  
"intelligence" : 7  
}  
}

I am using free kibana and elasticsearch license.

I am using this request with json body. User can be create through UI level by login in kibana dashboard, but when i use this rest apis "404 not found " error come in response.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [September 12, 2019, 5:59pm UTC](https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296/2 "2019-09-12T17:59:46Z")

</div>

Are you using curl, or what are you using to make the request? Are you ensuring to use the credentials of a user who has sufficient privileges when making the request?

---

<div class="post-metadata">

### Author: ![GRV](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@GRV](https://discuss.elastic.co/u/GRV)
#### Post date: [September 13, 2019, 2:16am UTC](https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296/3 "2019-09-13T02:16:04Z")

</div>

Thank you very much lukas for the reply.  
Issue is resolve, i was trying to hit the api on "[http://0.0.0.0:5601](http://0.0.0.0:5601)", 5601 is for kibana,  
but api need to be hit on "[http://0.0.0.0:9200](http://0.0.0.0:9200)" on 9200 elastic search is running.

---

<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: [October 11, 2019, 2:16am UTC](https://discuss.elastic.co/t/not-able-to-create-new-user-in-kibana-dashboard-by-the-help-of-api/199296/4 "2019-10-11T02:16:04Z")

</div>

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