
RobP.81728 (Customer) asked a question.
I would like to authenticate Okta users via OAuth2 and then use the resulting tokens to be able to call Okta APIs (user/group specifically). I see a note at https://developer.okta.com/docs/api/getting_started/design_principles*authentication that says
"The API key (API token) isn’t interchangeable with an Okta session token, access tokens or ID tokens used with OAuth 2.0 and OpenID Connect."
Does that mean it's not possible at all to use Okta OAuth2 tokens to call the Okta REST APIs? (If so, why?) Or is there a different mechanism to achieve OAuth2-based API access?
Thanks,

Hi Rob,
REST API endpoints have been designed to be accessed only with API tokens due to the security level required for gathering or modifying certain details. As per the documentation article https://developer.okta.com/docs/api/getting_started/getting_a_token "API tokens inherit the API access of the user who creates them" and, as such, end users should not be able to see details that they do not have access to by using a bearer token header.
Dragos Gaftoneanu
Developer Support Engineer
Okta Global Customer Care