# Error 403 after login with kibana

**URL:** <https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328>\
**Category:** Kibana\
**Created:** [May 29, 2019, 12:25pm UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328 "2019-05-29T12:25:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaser/32/109240_2.png) [@yaser](https://discuss.elastic.co/u/yaser)\
**Post date:** [May 29, 2019, 12:25pm UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/1 "2019-05-29T12:25:20Z")

</div>

why i get this error after login in kibana??? ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f83a2effc9e028bfb7e5cbf7d7e5b528b5e0608.png)

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 29, 2019, 4:48pm UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/2 "2019-05-29T16:48:25Z")

</div>

Hey @yaser, which user are you logging into Kibana using? If you login using a user which doesn't have any "Kibana Privileges", you'll see this screen and at the moment you'll have to close your browser and re-open it to log in as a different user. We're actively working on improving this situation per [https://github.com/elastic/kibana/issues/18270](https://github.com/elastic/kibana/issues/18270)

---

<div class="post-metadata">

**Author:** ![yaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaser/32/109240_2.png) [@yaser](https://discuss.elastic.co/u/yaser)\
**Post date:** [June 1, 2019, 7:55am UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/3 "2019-06-01T07:55:09Z")

</div>

Hey @Brandon_Kobel , i used this command to set default users password =\>\> **./bin/elasticsearch-setup-passwords interactive**  
and after that i set this config in my  
**kibana.yml** ==\>\>  
elasticsearch.username: "elastic"  
elasticsearch.password: "password that i set from above command"  
xpack.security.encryptionKey: "something\_at\_least\_32\_characters"  
xpack.security.enabled: true

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [June 3, 2019, 2:39pm UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/4 "2019-06-03T14:39:37Z")

</div>

In your `kibana.yml` you should be using `elasticsearch.username: kibana`. However, this isn't the user which I was initially asking about. When you get the login form in Kibana in your web browser, which user are you using to login there? That's where you should be using the `elastic` user, at least initially.

---

<div class="post-metadata">

**Author:** ![yaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaser/32/109240_2.png) [@yaser](https://discuss.elastic.co/u/yaser)\
**Post date:** [June 8, 2019, 5:29am UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/5 "2019-06-08T05:29:18Z")

</div>

thank you so much !!worked 🙂

---

<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:** [July 6, 2019, 5:29am UTC](https://discuss.elastic.co/t/error-403-after-login-with-kibana/183328/6 "2019-07-06T05:29:32Z")

</div>

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