# How to login as a different user after enabling anonymous access

**URL:** <https://discuss.elastic.co/t/how-to-login-as-a-different-user-after-enabling-anonymous-access/298187>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [February 24, 2022, 4:06pm UTC](https://discuss.elastic.co/t/how-to-login-as-a-different-user-after-enabling-anonymous-access/298187 "2022-02-24T16:06:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreesh\_Narayanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreesh_narayanan/32/87312_2.png) [@Shreesh\_Narayanan](https://discuss.elastic.co/u/Shreesh_Narayanan)\
**Post date:** [February 24, 2022, 4:06pm UTC](https://discuss.elastic.co/t/how-to-login-as-a-different-user-after-enabling-anonymous-access/298187/1 "2022-02-24T16:06:25Z")

</div>

I had enabled anonymous access for my kibana dashboards and it works flawlessly . However when i try to login as a different user , it brings me back to the anonymous user's account .

is there a way to get the login prompt , so we can try to login as a different user ?

i.e when i use the url

```auto
http://172.26.207.164:5601/

```

i get redirected to

```auto
 http://172.26.207.164:5601/s/dev/app/home#/

```

Shouldn't it ask for a login ? here's my kibana.yml .

```auto
path.data: /var/lib/kibana/
data.autocomplete.valueSuggestions.timeout: 100000000
data.autocomplete.valueSuggestions.terminateAfter: 100000000

xpack.security.authc.providers:
  anonymous.anonymous1:
    order: 0
    credentials: "elasticsearch_anonymous_user"

# This section was automatically generated during setup.
elasticsearch.hosts: ['https://172.26.209.169:9200']
elasticsearch.serviceAccountToken: XXXXXXX
elasticsearch.ssl.certificateAuthorities: [/var/lib/kibana/ca_1645610636399.crt]
xpack.fleet.outputs: [{id: fleet-default-output, name: default, is_default: true, is_default_monitoring: true, type: elasticsearch, hosts: ['https://172.26.209.169:9200'], ca_trusted_fingerprint: XXXXX}]
```

---

<div class="post-metadata">

**Author:** ![Shreesh\_Narayanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreesh_narayanan/32/87312_2.png) [@Shreesh\_Narayanan](https://discuss.elastic.co/u/Shreesh_Narayanan)\
**Post date:** [February 24, 2022, 6:58pm UTC](https://discuss.elastic.co/t/how-to-login-as-a-different-user-after-enabling-anonymous-access/298187/2 "2022-02-24T18:58:16Z")

</div>

Okay i was able to add another user

```auto
xpack.security.authc.providers:
  anonymous.anonymous1:
    order: 1
    credentials: "elasticsearch_anonymous_user"
    hint: "For Engineers"
  basic.basic1:
    order: 2
    icon: "logoElasticsearch"
    hint: "For devs"

```

But when i paste the anonymous user's dashboard , i get a prompt to login as guest , can this be skipped and navigate to dashboard directly

---

<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:** [March 24, 2022, 6:58pm UTC](https://discuss.elastic.co/t/how-to-login-as-a-different-user-after-enabling-anonymous-access/298187/3 "2022-03-24T18:58:28Z")

</div>

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