Access opensearch-security API in custom plugins?

Hello Team,

I’m trying to create a custom plugin in opensearch-dashboard. Is there away I call opensearch-security api within my custom plugin?

eg: fetch('_plugins/_security/api/account)

I need to check if current loggedin user has an “all_access” role and perform some operations (ui or serverside) or if there is a way I can tap into opensearch-security within my custom plugin?

opensearch-dashboard: 2.3.1

I tried dong this as well but I get 404.

image
Pretty much the same with what security plugin is doing

@jalipalo I suggest opening a case with the dev team in OpenSearch Security GitHub.

Thanks @pablo

Here is github issue