# User only with access to content they have created

**URL:** <https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574>\
**Category:** Elasticsearch\
**Created:** [March 13, 2023, 2:53pm UTC](https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574 "2023-03-13T14:53:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abrooky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrooky/32/118391_2.png) [@abrooky](https://discuss.elastic.co/u/abrooky)\
**Post date:** [March 13, 2023, 2:53pm UTC](https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574/1 "2023-03-13T14:53:33Z")

</div>

Can someone point me the in the right direction. I've built a simple search as you type tool for a website catalogue which will be used by multiple websites.

I need to make sure that each tenant have a unique user/pass and can only access indexes that they have created? I'm quite a noob so any direction pointers would be handy. They need permission to create/delete/edit their own indexes but no others. Is that possible?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 13, 2023, 3:36pm UTC](https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574/2 "2023-03-13T15:36:56Z")

</div>

Hi @abrooky Welcome to the community!

> [@abrooky](#):
>
> I need to make sure that each tenant have a unique user/pass and can only access indexes that they have created? I'm quite a noob so any direction pointers would be handy. They need permission to create/delete/edit their own indexes but no others. Is that possible?

Short answer Yes! .. but a Pretty big topic. Elasticsearch supports strong RBAC at multiple levels, index, document, field etc.

What you are describing is Index based RBAC

I would start with understanding Roles... lots of detail [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/defining-roles.html#roles-indices-priv).

If you use Kibana you can [set up users and Roles](https://www.elastic.co/guide/en/kibana/current/kibana-role-management.html) there as well.

Or you can do it programmatically via the Elasticserarch API.

I would try a test or two first then decide on how you want to implement it.

---

<div class="post-metadata">

**Author:** ![abrooky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrooky/32/118391_2.png) [@abrooky](https://discuss.elastic.co/u/abrooky)\
**Post date:** [March 13, 2023, 4:36pm UTC](https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574/3 "2023-03-13T16:36:53Z")

</div>

Roles in Kibana worked perfectly. Thanks SO much for sparing me some of you time and expertise. I'm very grateful.

---

<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:** [April 10, 2023, 4:37pm UTC](https://discuss.elastic.co/t/user-only-with-access-to-content-they-have-created/327574/4 "2023-04-10T16:37:25Z")

</div>

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