# Disable the basic user authentication in kibana: 7.17

**URL:** <https://discuss.elastic.co/t/disable-the-basic-user-authentication-in-kibana-7-17/358266>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [April 26, 2024, 6:18am UTC](https://discuss.elastic.co/t/disable-the-basic-user-authentication-in-kibana-7-17/358266 "2024-04-26T06:18:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkarthik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkarthik/32/85686_2.png) [@nkarthik](https://discuss.elastic.co/u/nkarthik)\
**Post date:** [April 26, 2024, 6:18am UTC](https://discuss.elastic.co/t/disable-the-basic-user-authentication-in-kibana-7-17/358266/1 "2024-04-26T06:18:28Z")

</div>

Hi,  
I have integrated AD to authenticate users to kibana. So, I want to disable the basic user authentication page.  
I tried setting xpack.security.enabled: false but I am getting below error. Can anyone please help me how to disable basic authentication.

```auto
{
    "statusCode": 401,
    "error": "Unauthorized",
    "message": "[missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]: security_exception: [security_exception] Reason: missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]]: missing authentication credentials for REST request [/.kibana_7.17.18/_search?from=0&rest_total_hits_as_int=true&size=1000]"
}

```

---

<div class="post-metadata">

**Author:** ![nkarthik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkarthik/32/85686_2.png) [@nkarthik](https://discuss.elastic.co/u/nkarthik)\
**Post date:** [April 27, 2024, 6:30am UTC](https://discuss.elastic.co/t/disable-the-basic-user-authentication-in-kibana-7-17/358266/2 "2024-04-27T06:30:19Z")

</div>

Hi, Can anyone please help me with my query?

---

<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:** [April 27, 2024, 2:42pm UTC](https://discuss.elastic.co/t/disable-the-basic-user-authentication-in-kibana-7-17/358266/3 "2024-04-27T14:42:22Z")

</div>

That's not possible, if you enabled security and authentication in Elasticsearch, then you will need to authenticate in Kibana as Kibana is a client to to Elasticsearch and the authentication is done by Elasticsearch.
