# How to set default index-pattern for different users

**URL:** <https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207>\
**Category:** Kibana\
**Created:** [October 20, 2021, 2:29pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207 "2021-10-20T14:29:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Post date:** [October 20, 2021, 2:29pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/1 "2021-10-20T14:29:08Z")

</div>

Hi all,

I have user-A with access to index-A and user-B with access to index-B. Both use Kibana to visualize data and there are two index-patterns defined (one for each index).

As far as I know, I can only set one index-pattern as default from all available index-patterns.

Problem is that if I set index-pattern-A as default, user-B get an error "403 - Unable to update UI setting" because it can't access index-A.

Is it possible to have a default index-pattern, other then index-patterns defined to access index-A or index-B, that "fits" all users?

Ver:7.15.0

Thank you

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 20, 2021, 2:31pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/2 "2021-10-20T14:31:45Z")

</div>

Maybe creating [Spaces](https://www.elastic.co/guide/en/kibana/current/xpack-spaces.html) for each users is easiest. In each space the index patterns are only for that space.

---

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Post date:** [October 20, 2021, 3:50pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/3 "2021-10-20T15:50:24Z")

</div>

Hi Aaron, thanks for your prompt reply 🙂

That seams awesome but I can't find any setting on "spaces" to configure an index-pattern.

All I can see is "General configs" (space name, avatar, etc) and "Features" (set feature visibility). Can you please point me to the right path?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 20, 2021, 3:57pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/4 "2021-10-20T15:57:10Z")

</div>

In spaces you have your own separate index patterns and visualizations. So if you have 2 different users in 2 different spaces they are isolated.

---

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Post date:** [October 20, 2021, 4:35pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/5 "2021-10-20T16:35:04Z")

</div>

> [@aaron-nimocks](#):
>
> In spaces you have your own separate index patterns and visualizations.

Is this feature on Ver: 7.15.0 on-prem installation? or Elastic Cloud only?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 20, 2021, 4:39pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/6 "2021-10-20T16:39:10Z")

</div>

Should be available on all as far as I know.

`The kibana_admin role or equivalent is required to manage Spaces.`

This could be the reason you aren't seeing it though.

---

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Post date:** [October 20, 2021, 4:54pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/7 "2021-10-20T16:54:43Z")

</div>

I'm quite sure that's not the case as my user have an "super" role which have all privileges on Elastic, Indices and Kibana (I can also login as elastic reserved user if needed). I just can't find [here](https://www.elastic.co/guide/en/kibana/current/xpack-spaces.html) where to configure default index-pattern within any specific Space ☹

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [October 20, 2021, 5:06pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/8 "2021-10-20T17:06:32Z")

</div>

You don't set it there. You would set it in Index Patterns inside your own space.

1. Create 2 spaces.
2. Assign users to different spaces.
3. Inside the space create index pattern and set default.
4. Repeat for other space.

---

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.elastic.co/u/mcosta)\
**Post date:** [October 20, 2021, 5:57pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/9 "2021-10-20T17:57:03Z")

</div>

I'm sorry for not knowing the basics (rookie here).

My user is able to see all user Spaces and choose each one on top left corner. Them, I'll create desired index patterns for them and set one as default.

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:** [November 17, 2021, 5:57pm UTC](https://discuss.elastic.co/t/how-to-set-default-index-pattern-for-different-users/287207/10 "2021-11-17T17:57:57Z")

</div>

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