Security Privileges - Auto Expand Replicas

Hello.

I'm running ES version 8.1.3 and I'm facing some issues regarding "auto_expand_replicas"

This is my command on the console over Dev Tools.

 PUT /.kibana/_settings
{
 "index" : {
  "number_of_replicas":0,
  "auto_expand_replicas": false
 }
}

This is the response:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "action [indices:admin/settings/update] is unauthorized for user [twadmin] with roles [viewer,editor,kibana_admin,superuser,apm_system,manage_index_templates,manage_all] on indices [.kibana_8.1.3_001,.kibana], this action is granted by the index privileges [manage,all]"
      }
    ],
    "type" : "security_exception",
    "reason" : "action [indices:admin/settings/update] is unauthorized for user [twadmin] with roles [viewer,editor,kibana_admin,superuser,apm_system,manage_index_templates,manage_all] on indices [.kibana_8.1.3_001,.kibana], this action is granted by the index privileges [manage,all]"
  },
  "status" : 403
}

So after reading through the forum, I realized that I would need to have Manage Index Privilege.

I created the following role to my user, but I still didn't succeed at changing the "auto_expand_replicas"

Best Regards.

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