# First time login failing when creating custom kibana.index

**URL:** <https://discuss.elastic.co/t/first-time-login-failing-when-creating-custom-kibana-index/89464>\
**Category:** Kibana\
**Created:** [June 14, 2017, 10:08pm UTC](https://discuss.elastic.co/t/first-time-login-failing-when-creating-custom-kibana-index/89464 "2017-06-14T22:08:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josibake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josibake/32/19100_2.png) [@josibake](https://discuss.elastic.co/u/josibake)\
**Post date:** [June 14, 2017, 10:08pm UTC](https://discuss.elastic.co/t/first-time-login-failing-when-creating-custom-kibana-index/89464/1 "2017-06-14T22:08:31Z")

</div>

Hey,

I am running into a weird scenario: I am creating a custom kibana instance `.kibana-user` and then setting a default index pattern for that template.

I then create an account that is restricted to a specific index, has read privileges, and the kibana\_user role. When I log in under that user, I cannot see any of the data in my index.

_HOWEVER_ .. if I first log into kibana as the admin, and then login as the read only user, everything works perfectly.

Am I doing something wrong here or is this a bug?

Thanks!

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [June 15, 2017, 9:37pm UTC](https://discuss.elastic.co/t/first-time-login-failing-when-creating-custom-kibana-index/89464/2 "2017-06-15T21:37:18Z")

</div>

Are you seeing any access denials in your elasticsearch logs when logging in as the regular user? You may need to tweak your [audit logging](https://www.elastic.co/guide/en/x-pack/5.4/auditing.html) to see this.

---

<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 13, 2017, 9:37pm UTC](https://discuss.elastic.co/t/first-time-login-failing-when-creating-custom-kibana-index/89464/3 "2017-07-13T21:37:30Z")

</div>

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