# Okta UserInfo Returns HTTP 403 Forbidden

**URL:** <https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415>\
**Category:** Questions\
**Created:** [October 19, 2020, 9:44pm UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415 "2020-10-19T21:44:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik\_567](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@karthik\_567](https://devforum.okta.com/u/karthik_567)\
**Post date:** [October 19, 2020, 9:44pm UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415/1 "2020-10-19T21:44:15Z")

</div>

Hi, I Need user info In My Spring Boot Services for the custom Logic. When I making call for the below Endpoint it is giving me error 403 Error

[https://dev-6928379.okta.com/oauth2/default/v1/userinfo](https://dev-6928379.okta.com/oauth2/default/v1/userinfo) With The API token

I am using I am using Spring Boot 2.1.4.RELEASE

Not Sure Exactly where im doing wrong

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [October 20, 2020, 12:58am UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415/2 "2020-10-20T00:58:07Z")

</div>

would be nice to see a request sent to this endpoint

---

<div class="post-metadata">

**Author:** ![karthik\_567](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@karthik\_567](https://devforum.okta.com/u/karthik_567)\
**Post date:** [October 20, 2020, 4:50am UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415/3 "2020-10-20T04:50:46Z")

</div>

Below Is the Complete Request

[https://dev-6928379.okta.com/oauth2/default/v1/userinfo](https://dev-6928379.okta.com/oauth2/default/v1/userinfo) - POST

- H Authorization Bearer Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Note: Token was generated using Client Credentials

---

<div class="post-metadata">

**Author:** ![karthik\_567](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@karthik\_567](https://devforum.okta.com/u/karthik_567)\
**Post date:** [October 20, 2020, 10:52am UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415/4 "2020-10-20T10:52:07Z")

</div>

Since Token is generated Using Client credentials, userinfo end point is not working. But when i generate using Password Grant Type for a user. userinfo Working… Makes Sense …

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [October 21, 2020, 10:52am UTC](https://devforum.okta.com/t/okta-userinfo-returns-http-403-forbidden/11415/5 "2020-10-21T10:52:20Z")

</div>

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