# Create an app search engine from an elasticsearch index using the PHP client

**URL:** <https://discuss.elastic.co/t/create-an-app-search-engine-from-an-elasticsearch-index-using-the-php-client/338409>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 14, 2023, 11:58am UTC](https://discuss.elastic.co/t/create-an-app-search-engine-from-an-elasticsearch-index-using-the-php-client/338409 "2023-07-14T11:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nfeekery](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nfeekery/32/117349_2.png) [@nfeekery](https://discuss.elastic.co/u/nfeekery)\
**Post date:** [July 20, 2023, 1:23pm UTC](https://discuss.elastic.co/t/create-an-app-search-engine-from-an-elasticsearch-index-using-the-php-client/338409/2 "2023-07-20T13:23:36Z")

</div>

Hi Francis,  
This looks similar to [another question that was posted](https://discuss.elastic.co/t/app-search-error-create-engine/326827). That user was also receiving `400`s when trying to create an `elasticsearch` type engine. Can you confirm that your configured user has the correct permissions to create engines?

EDIT: here is the [documentation for App Search users](https://www.elastic.co/guide/en/app-search/8.8/security-and-users.html#security-roles-engines) in case it helps. If permissions are the cause, then the user may need to be owner or admin.

---

_[View the full topic](https://discuss.elastic.co/t/create-an-app-search-engine-from-an-elasticsearch-index-using-the-php-client/338409)._
