# "error": "no handler found for uri \[/\_security/role/kib\] and method \[POST\]"

**URL:** <https://discuss.elastic.co/t/error-no-handler-found-for-uri-security-role-kib-and-method-post/341085>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 18, 2023, 9:47am UTC](https://discuss.elastic.co/t/error-no-handler-found-for-uri-security-role-kib-and-method-post/341085 "2023-08-18T09:47:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramon\_Moraga\_Fernand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramon_moraga_fernand/32/123326_2.png) [@Ramon\_Moraga\_Fernand](https://discuss.elastic.co/u/Ramon_Moraga_Fernand)\
**Post date:** [August 18, 2023, 9:47am UTC](https://discuss.elastic.co/t/error-no-handler-found-for-uri-security-role-kib-and-method-post/341085/1 "2023-08-18T09:47:47Z")

</div>

I have this elasticsearch.yml configuration(cluster.name: elasticsearch\_cluster  
discovery.seed\_hosts: ["elasticsearch"]  
discovery.type: single-node  
bootstrap.memory\_lock: true  
http.host: 0.0.0.0  
transport.host: 0.0.0.0  
#xpack.security.enabled: false  
http.cors.enabled: true  
http.cors.allow-origin: "\*"  
node.name: ip-10-0-14-176.eu-west-3.compute.internal  
network.host: 0.0.0.0  
http.port: 9200  
#xpack.security.enabled: false) and when i whant to create a user i request this error("error": "no handler found for uri [/\_security/role/kib] and method [POST]")

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 18, 2023, 11:03am UTC](https://discuss.elastic.co/t/error-no-handler-found-for-uri-security-role-kib-and-method-post/341085/2 "2023-08-18T11:03:32Z")

</div>

Hello and welcome,

You have security disabled, you can't create users if you have security disabled, you need to enable security and configure it according to the documentation.

---

<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 15, 2023, 11:03am UTC](https://discuss.elastic.co/t/error-no-handler-found-for-uri-security-role-kib-and-method-post/341085/3 "2023-09-15T11:03:43Z")

</div>

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