# How to add password authorization

**URL:** <https://discuss.elastic.co/t/how-to-add-password-authorization/323713>\
**Category:** Elasticsearch\
**Created:** [January 23, 2023, 9:45am UTC](https://discuss.elastic.co/t/how-to-add-password-authorization/323713 "2023-01-23T09:45:50Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)\
**Post date:** [January 31, 2023, 7:38am UTC](https://discuss.elastic.co/t/how-to-add-password-authorization/323713/14 "2023-01-31T07:38:32Z")

</div>

It seems for resetting the passwords using ansible, you have raised another topic: [Reset password api](https://discuss.elastic.co/t/reset-password-api/324193)  
And as @Yang_Wang has mentioned, you will require either default generated password or use the CLI.  
However, there is another option I'd like to add here (which I used during Jenkins based deployment): add a new superuser using file realm (enabled by default) and use that user to reset the password of built-in users.  
To add a new user, please refer here: [elasticsearch-users | Elasticsearch Guide [8.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/users-command.html)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-add-password-authorization/323713)._
