# How to validate Users Access

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-validate-users-access/14177>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, apis\
**Created:** [July 12, 2023, 3:54am UTC](https://developer.sailpoint.com/discuss/t/how-to-validate-users-access/14177 "2023-07-12T03:54:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreeneT](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/greenet/32/4667_2.png) [@GreeneT](https://developer.sailpoint.com/discuss/u/GreeneT)\
**Post date:** [July 12, 2023, 3:54am UTC](https://developer.sailpoint.com/discuss/t/how-to-validate-users-access/14177/1 "2023-07-12T03:54:00Z")

</div>

Is there a way to pull back all access a users has (Access Profiles, Roles, Entitlements) for all sources. We want a way via API to have ServiceNow validate a user does not already have access that a manager is about to request. Because if they do then IdentityNow will handle it as expected and does nothing with that access request from ServiceNow, but ServiceNow does a look back query via activityID to see if the access has been completed gets an error because there is no activityID.

So we want to be able to validate user does not already have access or find a way for ServiceNow to handle this gracefully to the end user and cancel the ticket and make comment on the ticket that user already has this access.

Thanks

---

<div class="post-metadata">

**Author:** ![atarodia](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@atarodia](https://developer.sailpoint.com/discuss/u/atarodia)\
**Post date:** [July 12, 2023, 9:16am UTC](https://developer.sailpoint.com/discuss/t/how-to-validate-users-access/14177/2 "2023-07-12T09:16:28Z")

</div>

Hi @GreeneT,

You can make use of V3 Search API to get the result you want.  
[https://developer.sailpoint.com/idn/api/v3/search-post](https://developer.sailpoint.com/idn/api/v3/search-post)

You can create a body based on your requirement. Example body:

```auto
{
 "indices": [
 "identities"
 ],
 "queryType": "SAILPOINT",
 "queryVersion": "5.2",
 "query": {
 "query": "attributes.uid:Animesh.Tarodia"
 }
  }

```

---

<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:** [September 10, 2023, 9:16am UTC](https://developer.sailpoint.com/discuss/t/how-to-validate-users-access/14177/3 "2023-09-10T09:16:58Z")

</div>

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