# Action \[indices:admin/auto\_create\] is unauthorized for API key id \[AJJWM4ABcxc0XhdJgk1e\] of user \[elastic\], this action is granted by the index privileges \[auto\_configure,create\_index,manage,all\]

**URL:** <https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-api-key-id-ajjwm4abcxc0xhdjgk1e-of-user-elastic-this-action-is-granted-by-the-index-privileges-auto-configure-create-index-manage-all/302633>\
**Category:** Elastic Observability\
**Created:** [April 18, 2022, 3:53pm UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-api-key-id-ajjwm4abcxc0xhdjgk1e-of-user-elastic-this-action-is-granted-by-the-index-privileges-auto-configure-create-index-manage-all/302633 "2022-04-18T15:53:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehakdeep\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehakdeep_singh/32/103716_2.png) [@Mehakdeep\_singh](https://discuss.elastic.co/u/Mehakdeep_singh)\
**Post date:** [April 18, 2022, 3:53pm UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-api-key-id-ajjwm4abcxc0xhdjgk1e-of-user-elastic-this-action-is-granted-by-the-index-privileges-auto-configure-create-index-manage-all/302633/1 "2022-04-18T15:53:40Z")

</div>

Hi guys,  
I am using metricbeat to ship my AWS EC2 metrics to Elasticsearch. On running metricbeat I'm getting the below error as shown in screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a0d255ea017cb28a83c3d7d3d5ee094ed25a6efe.png)

Please guide me to resolve this issue, as I'm new to Elasticsearch.

---

<div class="post-metadata">

**Author:** ![diogof](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@diogof](https://discuss.elastic.co/u/diogof)\
**Post date:** [May 17, 2022, 10:29am UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-api-key-id-ajjwm4abcxc0xhdjgk1e-of-user-elastic-this-action-is-granted-by-the-index-privileges-auto-configure-create-index-manage-all/302633/2 "2022-05-17T10:29:14Z")

</div>

Hi @Mehakdeep_singh , did you manage to find a solution to this? I'm experiencing a similar issue at the moment. Thanks in advance.

---

<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:** [November 4, 2022, 8:35am UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-api-key-id-ajjwm4abcxc0xhdjgk1e-of-user-elastic-this-action-is-granted-by-the-index-privileges-auto-configure-create-index-manage-all/302633/3 "2022-11-04T08:35:11Z")

</div>


