Why does snapshot restore have permission error?

Hello?
I just tried to restore snapshot indices.

Howerver there is security permission issue. This is used my admin user.

Any ideas?


POST /_snapshot/admin/metricbeat-7.7.0-restore-not-work-2020.07.09_11:25:47/_restore
{ “indices”: “metricbeat-7.7.0-restore-not-work”,
“ignore_unavailable”: true,
“include_global_state”: false,
“rename_pattern”: “metricbeat-7.7.0-restore-not-work”,
“rename_replacement”: “metricbeat-7.7.0-restore-not-work-rere”,
“include_aliases”: false
}

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

@twpower Did you manage to get this resolved? If not, what version of odfe are you running?

it could be global state is included in the snap
I was able to get individual with below
“include_global_state”: false

reference

Restore a snapshot

POST _snapshot/my-repository/my-snapshot/_restore
{
  "indices": "-.opendistro_security",
  "include_global_state": false
}