# Generating a PAT through the API for another Identity

**URL:** <https://developer.sailpoint.com/discuss/t/generating-a-pat-through-the-api-for-another-identity/14163>\
**Category:** SHF Discussion and Questions\
**Tags:** apis, identity-security-cloud, authentication\
**Created:** [July 11, 2023, 6:47pm UTC](https://developer.sailpoint.com/discuss/t/generating-a-pat-through-the-api-for-another-identity/14163 "2023-07-11T18:47:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mcheek](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mcheek/32/23705_2.png) [@mcheek](https://developer.sailpoint.com/discuss/u/mcheek)\
**Post date:** [July 12, 2023, 6:04pm UTC](https://developer.sailpoint.com/discuss/t/generating-a-pat-through-the-api-for-another-identity/14163/7 "2023-07-12T18:04:17Z")

</div>

We actually have identities for non-human accounts like AD service accounts or bots, so it was actually kinda straight-forward to provision it the correct access then generate a token for it.

You’re right though, we don’t necessarily want anonymous access requests being created externally, which is why we generated a PAT for our ServiceNow service account in AD.

I’ve had an issue [specifically with this API endpoint permission](https://developer.sailpoint.com/discuss/t/access-request-status-endpoint-why-is-org-admin-required-to-view-access-requests-for-others/5739) because I wanted a token generated for PowerBI to be able to read access requests for other users. Since it can’t, I had to re-use my ServiceNow ORG\_ADMIN credentials for Power BI

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/generating-a-pat-through-the-api-for-another-identity/14163)._
