# Accessing Admin controls using OAuth

**URL:** <https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523>\
**Category:** OAuth/OIDC\
**Tags:** api, oauth\
**Created:** [February 23, 2022, 3:26pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523 "2022-02-23T15:26:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hananel](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hananel](https://devforum.okta.com/u/hananel)\
**Post date:** [February 23, 2022, 3:26pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/1 "2022-02-23T15:26:14Z")

</div>

Hi,

Is there a way to access the following endpoints using an OAuth? (e.g. an “app integration” of the “OIDC - OpenID Connect” type):

- **Security notifications** - a way to see if configurations such as “Report suspicious activity via email” are enabled?
- **API tokens** - who issued? are they active? did an admin issue an API token?
- **Missing supported saml apps** - a way to see (via OAuth API) if my apps have the “SIGN ON METHODS” configured to support “SAML”
- **Threat insights** - a way to see the Okta ThreatInsight Settings such as “Log and block authentication attempts from malicious IPs”?
- **Multi factors** - access and see all my MFA in the multifactor authentication section under security?
- **Health check** - all the HealthInsight section, any way to consume it?

It just seems that the endpoints are very limited, and don’t include all we need. Is there a way to formally request to expose these endpoints?

Thank you!

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [February 23, 2022, 6:41pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/2 "2022-02-23T18:41:26Z")

</div>

Hello,

All of the Okta “supported” public APIs can be found [here](https://developer.okta.com/docs/reference/).  
All APIs support the use of an API Token and most also support OAuth.  
Instructions to setup OAuth integration for Okta APIs can be found [here](https://developer.okta.com/docs/guides/implement-oauth-for-okta/main/).

Usually I will first use an API Token to get a particular API to work. After that I will test with OAuth for a super admin user using an OIDC application with all Okta scopes granted. If the call works with the API Token, but not OAuth then that endpoint might not support OAuth yet. If you run into this let us know the exact endpoint and we can verify if it should work or not.

---

<div class="post-metadata">

**Author:** ![hananel](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hananel](https://devforum.okta.com/u/hananel)\
**Post date:** [February 24, 2022, 7:16am UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/3 "2022-02-24T07:16:34Z")

</div>

Hi @erik,

Thank you for your response! Much appreciated.  
**Threat insights** is a supported API token that doesn’t work for me in OAuth.

While not an official end-point, I was able to access using an API token the following:  
https://{my\_domain}.okta.com/api/internal/admin/notification  
but this doesn’t work in OAuth. Is there a reason for this? A workaround? A way to request making this an official supported OAuth end-point?

Thank you!

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 24, 2022, 4:29pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/4 "2022-02-24T16:29:41Z")

</div>

Important note: Internal endpoints like this are not publicly supported and their implementation can change at any time, thus we do not recommend that any solutions be built around them as they can stop working without notification.

As this is not a public endpoint, it is also not intended for use with OAuth tokens.

---

<div class="post-metadata">

**Author:** ![hananel](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hananel](https://devforum.okta.com/u/hananel)\
**Post date:** [February 24, 2022, 4:41pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/5 "2022-02-24T16:41:42Z")

</div>

Thanks, @andrea.  
Makes perfect sense. Is there a way to request specific Internal endpoints to become Publicly supported?

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [February 24, 2022, 8:59pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/6 "2022-02-24T20:59:08Z")

</div>

Any type of feature request can be done at [ideas.okta.com](http://ideas.okta.com).

---

<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 25, 2022, 8:59pm UTC](https://devforum.okta.com/t/accessing-admin-controls-using-oauth/19523/7 "2022-02-25T20:59:57Z")

</div>

Closed on February 25, 2022, 8:59pm UTC

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