# User Types API returns 403 when using access token

**URL:** <https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316>\
**Category:** OAuth/OIDC\
**Created:** [September 24, 2021, 10:21am UTC](https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316 "2021-09-24T10:21:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanjayG](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@SanjayG](https://devforum.okta.com/u/SanjayG)\
**Post date:** [September 24, 2021, 10:21am UTC](https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316/1 "2021-09-24T10:21:40Z")

</div>

I have created a OAuth app in okta and I’m using authorization code flow to get access token. I’m able to call all other API using access token except user types API, it returns 403 forbidden. If I use API token I can access user types API.  
I get the following response when I use access token to call user types API

```auto
{

    "errorCode": "E0000005",

    "errorSummary": "Invalid session",

    "errorLink": "E0000005",

    "errorId": "oaeygU0Zcm3QjqRCnw1UmJsds",

    "errorCauses": []

}

```

Thank you

---

<div class="post-metadata">

**Author:** ![tyty](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyty](https://devforum.okta.com/u/tyty)\
**Post date:** [September 24, 2021, 3:15pm UTC](https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316/2 "2021-09-24T15:15:58Z")

</div>

This endpoint (`/api/v1/meta/types/user`) unfortunately does not support OAuth as of yet - Please feel free to upvote the feature request in our Ideas Portal [here](https://ideas.okta.com/app/#/case/132309?section=requests)

---

<div class="post-metadata">

**Author:** ![SanjayG](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@SanjayG](https://devforum.okta.com/u/SanjayG)\
**Post date:** [September 28, 2021, 9:57am UTC](https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316/3 "2021-09-28T09:57:04Z")

</div>

Hi @tyty,  
Thank you for the reply, Is there any workaround or alternative API to get all User types using OAuth token.

---

<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:** [February 8, 2024, 7:31pm UTC](https://devforum.okta.com/t/user-types-api-returns-403-when-using-access-token/16316/4 "2024-02-08T19:31:16Z")

</div>

Closed on February 8, 2024, 7:31pm UTC

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