Admin user privileges to access to PUT /.plugins-ml-config/_doc/os_chat

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

Describe the issue:
we created mistral ai agent on model, and would like to perform
PUT /.plugins-ml-config/_doc/os_chat
{
“type”:“os_chat_root_agent”,
“configuration”:{
“agent_id”: “kPQygZoBA2ag4AIKsaL4”
}
}

this command so we can integrate this agent with Opensearch dashboard AI assistant.

but to proceed with this command we are facing error:

{
“error”: {
“root_cause”: [
{
“type”: “security_exception”,
“reason”: “no permissions for and User [name=admin, backend_roles=[admin], requestedTenant=]”
}
],
“type”: “security_exception”,
“reason”: “no permissions for and User [name=admin, backend_roles=[admin], requestedTenant=]”
},
“status”: 403
}

so could someone suggest a way to resolve this?

Configuration:

Relevant Logs or Screenshots:

@amolusare have you disabled the security protection using the following:

PUT /_cluster/settings
{
    "persistent": {
        "plugins.ml_commons.connector_access_control_enabled": false
    }
}

Even after updating the setting as you mentioned, i am facing the same issue
{
“error”: {
“root_cause”: [
{
“type”: “security_exception”,
“reason”: “no permissions for and User [name=admin, backend_roles=, requestedTenant=]”
}
],
“type”: “security_exception”,
“reason”: “no permissions for and User [name=admin, backend_roles=, requestedTenant=]”
},
“status”: 403
}

@Daredevil The API you are using is being performed on the system index, which requires superuser privileges. This is also mentioned in the documentation.

You would need to use admin certificates to perform this action.