# OpenSearch Python SDK API

**URL:** <https://forum.opensearch.org/t/opensearch-python-sdk-api/16613>\
**Category:** OpenSearch\
**Tags:** discuss, feature-request\
**Created:** [November 9, 2023, 11:19am UTC](https://forum.opensearch.org/t/opensearch-python-sdk-api/16613 "2023-11-09T11:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aspiringananya](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@aspiringananya](https://forum.opensearch.org/u/aspiringananya)\
**Post date:** [November 9, 2023, 11:19am UTC](https://forum.opensearch.org/t/opensearch-python-sdk-api/16613/1 "2023-11-09T11:19:47Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

**Describe the issue** :  
Hi ,

Could you help me with the info if there are API s’ currently to support the below features as part of OpenSearch Python SDK. Creating and deleting the below resources through SDK.

I am unable t o use terraform to spin up these resources and need help of SDK to write scripts to both create and delete the below resources.

opensearch\_user  
opensearch\_role  
opensearch\_roles\_mapping

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [November 13, 2023, 3:17pm UTC](https://forum.opensearch.org/t/opensearch-python-sdk-api/16613/2 "2023-11-13T15:17:45Z")

</div>

Hi @aspiringananya,

have you checked these:

> <https://github.com/opensearch-project/opensearch-py/blob/main/guides/plugins/security.md>

and

> **[API](https://opensearch.org/docs/latest/security/access-control/api/)**
>
> API

---

<div class="post-metadata">

**Author:** ![aspiringananya](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@aspiringananya](https://forum.opensearch.org/u/aspiringananya)\
**Post date:** [November 14, 2023, 7:34am UTC](https://forum.opensearch.org/t/opensearch-python-sdk-api/16613/3 "2023-11-14T07:34:59Z")

</div>

Thanks @Mantas 🙂
