# User with \`superuser\` permissions doesn't have rights to apply ILM policies

**URL:** <https://discuss.elastic.co/t/user-with-superuser-permissions-doesnt-have-rights-to-apply-ilm-policies/193758>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 5, 2019, 9:01am UTC](https://discuss.elastic.co/t/user-with-superuser-permissions-doesnt-have-rights-to-apply-ilm-policies/193758 "2019-08-05T09:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antcas](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@antcas](https://discuss.elastic.co/u/antcas)\
**Post date:** [August 5, 2019, 9:01am UTC](https://discuss.elastic.co/t/user-with-superuser-permissions-doesnt-have-rights-to-apply-ilm-policies/193758/1 "2019-08-05T09:01:55Z")

</div>

Hello.

We introduced authentication in our cluster last week and now ILM does not work anymore.  
When I look at the errors, I can see

```auto
security_exception: action [indices:monitor/stats] is unauthorized for user [read_only_kibana]

```

But that user has `superuser` permissions:

```auto
{
  "read_only_kibana" : {
    "username" : "read_only_kibana",
    "roles" : [
      "superuser"
    ],
    "full_name" : null,
    "email" : null,
    "metadata" : { },
    "enabled" : true
  }
}

```

Is there anything obvious we're missing? Shouldn't superuser be able to run ILM related operations?

---

<div class="post-metadata">

**Author:** ![antcas](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@antcas](https://discuss.elastic.co/u/antcas)\
**Post date:** [August 5, 2019, 10:14am UTC](https://discuss.elastic.co/t/user-with-superuser-permissions-doesnt-have-rights-to-apply-ilm-policies/193758/2 "2019-08-05T10:14:51Z")

</div>

Now I tried to delete the user and use another one, but I still see the message  
`security_exception: action [indices:monitor/stats] is unauthorized for user [read_only_kibana]`  
How is this possible? That user doesn't exist anymore:

```auto
$ curl -XGET "http://localhost:9200/_security/user/read_only_kibana"
{}

```

How/where can I verify with which user is ILM running?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 2, 2019, 10:14am UTC](https://discuss.elastic.co/t/user-with-superuser-permissions-doesnt-have-rights-to-apply-ilm-policies/193758/3 "2019-09-02T10:14:58Z")

</div>

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