# I'm getting 401 on an M2M token, which has permission to create users

**URL:** <https://community.auth0.com/t/im-getting-401-on-an-m2m-token-which-has-permission-to-create-users/138383>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 8, 2024, 5:15pm UTC](https://community.auth0.com/t/im-getting-401-on-an-m2m-token-which-has-permission-to-create-users/138383 "2024-07-08T17:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo.vidal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rodrigo.vidal/32/58345_2.png) [@rodrigo.vidal](https://community.auth0.com/u/rodrigo.vidal)\
**Post date:** [July 8, 2024, 5:15pm UTC](https://community.auth0.com/t/im-getting-401-on-an-m2m-token-which-has-permission-to-create-users/138383/1 "2024-07-08T17:15:42Z")

</div>

Hello everyone, I’m having difficulty using the M2M token to interact with the Auth0 API. I created a token with user registration administration scopes and I always receive 401. I’m trying to create a user, for example and as you can see in the scope of the token it has this permission.

Can you help me? Is there something missing in my config?

 ![request_token](https://global.discourse-cdn.com/auth0/original/3X/6/4/645811046c69be6102c0e52623c5714af2d00d9a.png)  
 ![create_user_error](https://global.discourse-cdn.com/auth0/original/3X/a/f/af740502255117dc69af77dbcd1fea4fd9b033c1.png)

---

<div class="post-metadata">

**Author:** ![petre.timotei](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@petre.timotei](https://community.auth0.com/u/petre.timotei)\
**Post date:** [October 3, 2024, 2:54pm UTC](https://community.auth0.com/t/im-getting-401-on-an-m2m-token-which-has-permission-to-create-users/138383/3 "2024-10-03T14:54:09Z")

</div>

Hi @rodrigo.vidal,

Welcome to the Auth0 Community!

Could you please try and let me know with the `token` provided by **auth0** and the audience ( **Auth0 Management API** )?

 ![Screenshot 2024-10-03 at 5.52.01 PM](https://global.discourse-cdn.com/auth0/original/3X/0/7/07bbe42bbaeb590c5c02f5c2058de66b6d3d356b.png)

Thanks,  
Timotei

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 17, 2024, 2:55pm UTC](https://community.auth0.com/t/im-getting-401-on-an-m2m-token-which-has-permission-to-create-users/138383/5 "2024-10-17T14:55:41Z")

</div>

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