# Opensearch-js: rolesmapping api

**URL:** <https://forum.opensearch.org/t/opensearch-js-rolesmapping-api/12676>\
**Category:** OpenSearch Client Libraries\
**Tags:** opensearch-js\
**Created:** [February 26, 2023, 3:49pm UTC](https://forum.opensearch.org/t/opensearch-js-rolesmapping-api/12676 "2023-02-26T15:49:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vasyl](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@Vasyl](https://forum.opensearch.org/u/Vasyl)\
**Post date:** [February 26, 2023, 3:49pm UTC](https://forum.opensearch.org/t/opensearch-js-rolesmapping-api/12676/1 "2023-02-26T15:49:56Z")

</div>

Hi, I am using latest opensearch-js library to interact with my cluster with fine-grained policy enabled.  
Is there a way to send rolesmapping api calls to the cluster?

---

<div class="post-metadata">

**Author:** ![wbeckler](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@wbeckler](https://forum.opensearch.org/u/wbeckler)\
**Post date:** [February 27, 2023, 2:21pm UTC](https://forum.opensearch.org/t/opensearch-js-rolesmapping-api/12676/2 "2023-02-27T14:21:07Z")

</div>

Nobody has implemented this as a built in method, but you can craft curl requests that conform to the API. The feature has been requested here: [[FEATURE] Add support for Security plugin APIs · Issue #329 · opensearch-project/opensearch-js · GitHub](https://github.com/opensearch-project/opensearch-js/issues/329)

Feel free to pipe up on the issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [April 28, 2023, 2:21pm UTC](https://forum.opensearch.org/t/opensearch-js-rolesmapping-api/12676/3 "2023-04-28T14:21:25Z")

</div>

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