# How to manage multiple users with different indexes in kibana

**URL:** <https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [July 21, 2022, 9:08am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259 "2022-07-21T09:08:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander2](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@alexander2](https://discuss.elastic.co/u/alexander2)\
**Post date:** [July 21, 2022, 9:08am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259/1 "2022-07-21T09:08:48Z")

</div>

Hello everyone. I have deployed ELK on a k8s cluster using ECK.  
What i'm trying to do is to create for each kibana user a space for him and assign him a role where he can only see his own metrics( i'm using metricbeat ).

my question is if i have a lot of users do i need to create for each user a role with his own index ?  
also when i log in as user i can't see the default dashboards like " Host Overview "

i'm really confused here any suggestion could help me a lot 😃 .

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [July 21, 2022, 11:37am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259/2 "2022-07-21T11:37:42Z")

</div>

Hey @alexander2,

> [@alexander2](#):
>
> What i'm trying to do is to create for each kibana user a space for him and assign him a role where he can only see his own metrics( i'm using metricbeat ).
> 
> my question is if i have a lot of users do i need to create for each user a role with his own index ?  
> also when i log in as user i can't see the default dashboards like " Host Overview "

If each user needs their own private space, then the only way to that is to create a role for each user with specific privileges to that space (and relevant indices).

If you have a lot of users to contend with, it might be beneficial to automate this process via Kibana's APIs. You could write a script/program to create these roles and spaces automatically:

- [Create or update role API | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/role-management-api-put.html)
- [Create space API | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/spaces-api-post.html)

---

<div class="post-metadata">

**Author:** ![alexander2](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@alexander2](https://discuss.elastic.co/u/alexander2)\
**Post date:** [July 22, 2022, 11:13am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259/3 "2022-07-22T11:13:58Z")

</div>

hey @Larry_Gregory thank you for you response.

that method actually isn't really good for our purposes so we decided to go with creating kibana instance for each user.

thank you 😃

---

<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:** [August 19, 2022, 11:14am UTC](https://discuss.elastic.co/t/how-to-manage-multiple-users-with-different-indexes-in-kibana/310259/4 "2022-08-19T11:14:06Z")

</div>

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