# Create admin user via API

**URL:** <https://forum.shopware.com/t/create-admin-user-via-api/102020>\
**Category:** Shopware 6 (English)\
**Created:** [22. November 2023 um 15:58 UTC](https://forum.shopware.com/t/create-admin-user-via-api/102020 "2023-11-22T15:58:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![klas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/klas/32/22232_2.png) [@klas](https://forum.shopware.com/u/klas)\
**Post date:** [22. November 2023 um 15:58 UTC](https://forum.shopware.com/t/create-admin-user-via-api/102020/1 "2023-11-22T15:58:22Z")

</div>

Hi,

Im trying to create an admin user through the API using post to /api/user

I have a token with Administrator rights but get error  
`This access token does not have the scope user`

I have also tried to create a custom user role but get the same error.

---

<div class="post-metadata">

**Author:** ![web-grips](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/web-grips/32/22792_2.png) [@web-grips](https://forum.shopware.com/u/web-grips)\
**Post date:** [28. November 2023 um 13:39 UTC](https://forum.shopware.com/t/create-admin-user-via-api/102020/2 "2023-11-28T13:39:35Z")

</div>

Did you enabled „administrator“ in the configuration of the integration?
