# Why does snapshot restore have permission error?

**URL:** <https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287>\
**Category:** Security\
**Created:** [July 9, 2020, 11:38am UTC](https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287 "2020-07-09T11:38:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![twpower](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@twpower](https://forum.opensearch.org/u/twpower)\
**Post date:** [July 9, 2020, 11:38am UTC](https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287/1 "2020-07-09T11:38:08Z")

</div>

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 }

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [April 14, 2021, 1:19pm UTC](https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287/2 "2021-04-14T13:19:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![infodata](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@infodata](https://forum.opensearch.org/u/infodata)\
**Post date:** [August 13, 2022, 3:15pm UTC](https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287/3 "2022-08-13T15:15:01Z")

</div>

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

reference

> **[Take and restore snapshots](https://docs.opensearch.org/2.1/opensearch/snapshots/snapshot-restore)**
>
> Take and restore snapshots

> **[Snapshots](https://docs.opensearch.org/latest/opensearch/snapshots/index/)**
>
> Snapshots

> **[Popular APIs](https://docs.opensearch.org/latest/opensearch/popular-api/)**
>
> Popular APIs Introduced 1.0

## Restore a snapshot

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

```
