# Trying to obtain access token gives 401 access denied error

**URL:** <https://community.auth0.com/t/trying-to-obtain-access-token-gives-401-access-denied-error/69653>\
**Category:** Get Help\
**Tags:** api, management-api, auth0\
**Created:** [September 14, 2021, 8:44pm UTC](https://community.auth0.com/t/trying-to-obtain-access-token-gives-401-access-denied-error/69653 "2021-09-14T20:44:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ashsubedi.ae](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashsubedi.ae/32/14581_2.png) [@ashsubedi.ae](https://community.auth0.com/u/ashsubedi.ae)\
**Post date:** [September 14, 2021, 10:27pm UTC](https://community.auth0.com/t/trying-to-obtain-access-token-gives-401-access-denied-error/69653/2 "2021-09-14T22:27:20Z")

</div>

The answer is here: [Claims doesn't have all the user information](https://community.auth0.com/t/claims-doesnt-have-all-the-user-information/69392)

**summary** : I had to call the API Explorer Application (Machine to Machine) with the relevant client id and secret, not the regular web application.

---

_[View the full topic](https://community.auth0.com/t/trying-to-obtain-access-token-gives-401-access-denied-error/69653)._
