Opensearch security config api

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

Describe the issue:
We are planning to update the security configuration of the existing cluster via API. Our approach involves fetching the current security configuration, modifying the payload, and then updating it using the Update Configuration API. However, the documentation recommends using securityadmin.sh. Could you please explain the rationale behind this recommendation? Additionally, we would like to know if there are any potential issues with proceeding through the API route.

Configuration:

Relevant Logs or Screenshots:

Good question. Having the same problem/situation right now.
The securityadmin.sh script complicates my workflow…