# Index not found exception error on Kibana 5.0 after setting security

**URL:** <https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801>\
**Category:** Kibana\
**Created:** [June 23, 2016, 4:13pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801 "2016-06-23T16:13:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 23, 2016, 4:13pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/1 "2016-06-23T16:13:08Z")

</div>

I have set up kibana 5.0 and set up some users and roles.

For example, I have set up `System_Admin` role and username `Technician` as follow and I have assign rights for the user for index `monitoring-*`

 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/a1b10f3551fc401b267cf835465f4c47db0b31b9.PNG)

It is working fine on index `monitoring-*`on Discovery Page

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/bc84fac33025eba154922ae9bd31aea1f1e608e7.PNG)

However, when I click into other index in Discovery and Dashboard Page, it will gives the following error.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b5fb61afa626682add320a8e44508128152deb44.PNG)

How can I solve that?

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [June 23, 2016, 9:58pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/2 "2016-06-23T21:58:53Z")

</div>

It looks like you are trying to do something on a index you do not have access to (lostfound), so you are getting a IndexNotFoundException. The exception from elasticsearch is expected.

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 23, 2016, 11:36pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/3 "2016-06-23T23:36:53Z")

</div>

Is there anyway I can change the error to like not authorized instead of giving me the notice of index not found exception

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [June 23, 2016, 11:53pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/4 "2016-06-23T23:53:21Z")

</div>

Unfortunately there is not. We plan to address this in a future release by changing the behavior to better align with the default behavior

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 24, 2016, 12:10am UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/5 "2016-06-24T00:10:26Z")

</div>

Is this also an area needed to be addressed for the Dashboard page?  
Because even if I am not authorized, I can still see those visulization charts and graphs but which only with titles and no actual visualization, again giving an error of no index found exception

---

<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, 2017, 1:49pm UTC](https://discuss.elastic.co/t/index-not-found-exception-error-on-kibana-5-0-after-setting-security/53801/6 "2017-07-06T13:49:25Z")

</div>


