# Action \[indices:admin/auto\_create\] is unauthorized for user

**URL:** <https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-user/357742>\
**Category:** Elasticsearch\
**Created:** [April 18, 2024, 7:03pm UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-user/357742 "2024-04-18T19:03:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pooort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pooort/32/131232_2.png) [@Pooort](https://discuss.elastic.co/u/Pooort)\
**Post date:** [April 18, 2024, 7:03pm UTC](https://discuss.elastic.co/t/action-indices-admin-auto-create-is-unauthorized-for-user/357742/1 "2024-04-18T19:03:47Z")

</div>

I'm trying to make `_sql` request and get:

> action [indices:admin/auto\_create] is unauthorized for user [some\_user] with roles [some\_role], this action is granted by the index privileges [auto\_configure,create\_index,manage,all]

It is completely ok from **Dev Tools**.

Role's privileges:

> {'global': [], 'indices': [{'names': ['_'], 'privileges': ['all'], 'allow\_restricted\_indices': True}], 'applications': [{'application': '_', 'privileges': ['_'], 'resources': ['_']}], 'run\_as': ['\*']}

How to fix this?  
Thank you in advance.
