# Mapping of Roles to Spaces in Elastic

**URL:** <https://discuss.elastic.co/t/mapping-of-roles-to-spaces-in-elastic/178466>\
**Category:** Elasticsearch\
**Created:** [April 25, 2019, 1:15pm UTC](https://discuss.elastic.co/t/mapping-of-roles-to-spaces-in-elastic/178466 "2019-04-25T13:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsalunkhe](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vsalunkhe](https://discuss.elastic.co/u/vsalunkhe)\
**Post date:** [April 25, 2019, 1:15pm UTC](https://discuss.elastic.co/t/mapping-of-roles-to-spaces-in-elastic/178466/1 "2019-04-25T13:15:47Z")

</div>

Hi,

I have two roles each of them having their own spaces. Say example:

1. A User/Role named Infra
2. A Space named Infra with all the visualizations that will be needed by User Infra.

I need to send all the Infra Indices to Infra space only, and the other roles indices should not be created/sent in Infra Space.

How do I achieve this?

Thanks,  
Vrushali

---

<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:** [April 25, 2019, 7:58pm UTC](https://discuss.elastic.co/t/mapping-of-roles-to-spaces-in-elastic/178466/2 "2019-04-25T19:58:48Z")

</div>

Hey @vsalunkhe,

You will want to create an [index pattern](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html) within the Infra space which covers your infra indices. This index pattern will not be available in any other space.

Your Infra role should also be updated to allow access to the underlying infra indices

---

<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:** [May 23, 2019, 7:58pm UTC](https://discuss.elastic.co/t/mapping-of-roles-to-spaces-in-elastic/178466/3 "2019-05-23T19:58:49Z")

</div>

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