# How to create index-pattern for a specific tenant in Elasticsearch Kibana using API?

**URL:** https://forum.opensearch.org/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/7737
**Category:** Security
**Created:** [November 25, 2021, 3:59am UTC](https://forum.opensearch.org/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/7737 "2021-11-25T03:59:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![triptesh1212](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@triptesh1212](https://forum.opensearch.org/u/triptesh1212)
#### Post date: [November 25, 2021, 3:59am UTC](https://forum.opensearch.org/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/7737/1 "2021-11-25T03:59:36Z")

</div>

Hi I am following this [API - Open Distro Documentation](https://opendistro.github.io/for-elasticsearch-docs/docs/security/access-control/api/#create-tenant) to create tenant.

We can also create an index using index API [Create index API | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html)

Is there any way to crate index-pattern with an index for a specific tenant using any API? (We can do the same manually from UI)

---

<div class="post-metadata">

### Author: ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)
#### Post date: [November 25, 2021, 3:54pm UTC](https://forum.opensearch.org/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/7737/2 "2021-11-25T15:54:23Z")

</div>

[Moved to the security category]

---

<div class="post-metadata">

### Author: ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)
#### Post date: [November 29, 2021, 9:54am UTC](https://forum.opensearch.org/t/how-to-create-index-pattern-for-a-specific-tenant-in-elasticsearch-kibana-using-api/7737/3 "2021-11-29T09:54:46Z")

</div>

@triptesh1212 It appears there is no such api at this time, I would recommend raising a feature request [here](https://github.com/opensearch-project/security/issues?page=1&q=is%3Aissue+is%3Aopen)
