# Using \_anonymous user but logged in as superuser

**URL:** <https://discuss.elastic.co/t/using-anonymous-user-but-logged-in-as-superuser/194233>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [August 7, 2019, 12:06pm UTC](https://discuss.elastic.co/t/using-anonymous-user-but-logged-in-as-superuser/194233 "2019-08-07T12:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antcas](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@antcas](https://discuss.elastic.co/u/antcas)\
**Post date:** [August 7, 2019, 12:06pm UTC](https://discuss.elastic.co/t/using-anonymous-user-but-logged-in-as-superuser/194233/1 "2019-08-07T12:06:14Z")

</div>

We set up authentication in our ELK cluster.

We have an `admin` user with `superuser` role. I go to kibana, login as `admin` and I can login and see all the spaces.  
However, when we click in a space, we get

```auto
[security_exception] action [cluster:admin/xpack/security/privilege/get] is unauthorized for user [_anonymous]

```

I am logged in as `admin`, so why is it trying to use `_anonymous` to access that? 🤨

---

<div class="post-metadata">

**Author:** ![antcas](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@antcas](https://discuss.elastic.co/u/antcas)\
**Post date:** [August 7, 2019, 12:17pm UTC](https://discuss.elastic.co/t/using-anonymous-user-but-logged-in-as-superuser/194233/2 "2019-08-07T12:17:39Z")

</div>

Found the issue: I did not have `elasticsearch.username` nor password defined in my `kibana.yml` file, so it was trying to use \_anonymous user.

After adding uisername and password there, everything works.

Topic can be closed

---

<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:** [September 4, 2019, 12:28pm UTC](https://discuss.elastic.co/t/using-anonymous-user-but-logged-in-as-superuser/194233/3 "2019-09-04T12:28:46Z")

</div>

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