# API Management vs PAT

**URL:** <https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388>\
**Category:** SHF Discussion and Questions\
**Tags:** apis\
**Created:** [March 13, 2023, 10:38pm UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388 "2023-03-13T22:38:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [March 13, 2023, 10:38pm UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388/1 "2023-03-13T22:38:17Z")

</div>

What are the difference between creating an API client ID/Secret using the API Management screen vs PAT (Personal Access Token)?

PAT is linked to a user account and thus the user permissions can be modified, but if both have the scopes set to ‘sp:scopes:all’ and the user is an Admin, are there API that only work with one or the other?

---

<div class="post-metadata">

**Author:** ![Angelo\_Mekenkamp\_Hnk](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Angelo\_Mekenkamp\_Hnk](https://developer.sailpoint.com/discuss/u/Angelo_Mekenkamp_Hnk)\
**Post date:** [March 14, 2023, 1:26pm UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388/2 "2023-03-14T13:26:00Z")

</div>

Example of API that unfortunately does not work with PAT:

> **[query-password-info | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/v3/query-password-info)**
>
> Query Password Info

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [March 20, 2023, 8:08pm UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388/3 "2023-03-20T20:08:04Z")

</div>

The API Management screen is for creating and managing [OAuth clients](https://developer.sailpoint.com/idn/api/authentication#oauth-20) with varying grant types. If you create a token with the client credentials grant type, then it doesn’t have a user assigned to it, so it has very little access. Only a handful of API endpoints, as @Angelo_Mekenkamp_Hnk pointed out, can be accessed with an OAuth token of client credentials. If you create a token with authorization code grant type, then that requires a user login to generate a token (useful for web apps that act on behalf of a user). Whichever user logs in will be granted a token with their user level, which determines which APIs they can access.

[A personal access token](https://developer.sailpoint.com/idn/api/authentication#personal-access-tokens) in IdentityNow is an Oauth2 token that only has the client credentials grant type. However, the PAT is unique in that it associates the user that created the PAT to the generated access tokens, giving those tokens the same user level as the user that created it. So if you are an Admin user and you generate a PAT with `sp:scopes:all`, your PAT can access **almost** every API endpoint.

[More information on which authentication mechanism to use.](https://developer.sailpoint.com/idn/api/authentication#daily-work-or-quick-actions)

---

<div class="post-metadata">

**Author:** ![Angelo\_Mekenkamp\_Hnk](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Angelo\_Mekenkamp\_Hnk](https://developer.sailpoint.com/discuss/u/Angelo_Mekenkamp_Hnk)\
**Post date:** [March 21, 2023, 10:12am UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388/4 "2023-03-21T10:12:12Z")

</div>

> [@colin\_mckibben](#):
>
> Only a handful of API endpoints, as @Angelo_Mekenkamp_Hnk pointed out, can be accessed with an OAuth token of client credentials.

I did not say that only a couple of API endpoints can be accessed with an OAuth token of client credentials. I gave an example where an API endpoint is (unfortunately) not accessible by a PAT.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/api-management-vs-pat/9388/5 "2023-07-19T14:24:33Z")

</div>

Closed on July 19, 2023, 2:24pm UTC


