# How do we identify the list of requests pending for a terminated user and a way to automatically cancel them

**URL:** <https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316>\
**Category:** SHF Discussion and Questions\
**Tags:** access-requests, identity-security-cloud\
**Created:** [October 24, 2025, 2:52pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316 "2025-10-24T14:52:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsekar7](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vsekar7](https://developer.sailpoint.com/discuss/u/vsekar7)\
**Post date:** [October 24, 2025, 2:52pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/1 "2025-10-24T14:52:01Z")

</div>

How do we identift the list of requests pending for a terminated user and a way to automatically cancel them

---

<div class="post-metadata">

**Author:** ![ruben\_elizondo](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben\_elizondo](https://developer.sailpoint.com/discuss/u/ruben_elizondo)\
**Post date:** [October 24, 2025, 3:21pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/2 "2025-10-24T15:21:40Z")

</div>

Hi Vengatesan,

This could be accomplished a couple of ways with a workflow. Here is one example;

**trigger** : lifecycle state change to terminate

**HTTP action** : [list-pending-approvals](https://developer.sailpoint.com/docs/api/v2025/list-pending-approvals) , using the _requestedFor.id_ parameter.

**Loop** through the response:

**Http Action** : [reject-access-request](https://developer.sailpoint.com/docs/api/v2025/reject-access-request) with a comment about the termination for audit purposes.

---

<div class="post-metadata">

**Author:** ![nhassan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/nhassan/32/5835_2.png) [@nhassan](https://developer.sailpoint.com/discuss/u/nhassan)\
**Post date:** [October 24, 2025, 3:24pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/3 "2025-10-24T15:24:56Z")

</div>

Hi @vsekar7

Attached is the JSON of workflow to auto cancel/reject their pending access requests.

[RejectLeaversPendingAccessRequests20251024.json](https://developer.sailpoint.com/discuss/uploads/short-url/qcVyddywJSv1vigVQEJ1iUMuk7S.json) (3.0 KB)

Try it first in the sandbox and let me know if you need more help.

---

<div class="post-metadata">

**Author:** ![vsekar7](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vsekar7](https://developer.sailpoint.com/discuss/u/vsekar7)\
**Post date:** [October 24, 2025, 3:51pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/4 "2025-10-24T15:51:28Z")

</div>

sure thanks, will let and let you know

---

<div class="post-metadata">

**Author:** ![vsekar7](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vsekar7](https://developer.sailpoint.com/discuss/u/vsekar7)\
**Post date:** [October 24, 2025, 3:52pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/5 "2025-10-24T15:52:44Z")

</div>

How do I trigger the workflow for the already existing users ?

I have designed the workflow in sandbox but not sure how to trigger them for the users who has been terminated already

---

<div class="post-metadata">

**Author:** ![nhassan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/nhassan/32/5835_2.png) [@nhassan](https://developer.sailpoint.com/discuss/u/nhassan)\
**Post date:** [October 24, 2025, 4:11pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/6 "2025-10-24T16:11:34Z")

</div>

Hi @vsekar7

There are two ways.

You can do it in the UI by going to Dashboard \> Approval Management \> use ‘Filter’ option or ‘Pending’ requests to cancel it for each terminated user. OR

Use below test input when testing the workflow in the sandbox and then manually trigger it.

`{`  
`“identity”: {`  
`“id”: “[Id of the terminated user]”,`  
`“name”: “[name of the terminated user]”,`  
`“type”: “IDENTITY”`  
`}`  
`}`

---

<div class="post-metadata">

**Author:** ![David\_Norris](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@David\_Norris](https://developer.sailpoint.com/discuss/u/David_Norris)\
**Post date:** [October 24, 2025, 4:31pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/7 "2025-10-24T16:31:28Z")

</div>

Use case like this, so rudimentary / fundamental, should have been incorporated by SailPoint at the product level. (e.g. Identity LCS feature toggle)

This is unnecessary friction / decelerator.

---

<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:** [December 23, 2025, 4:32pm UTC](https://developer.sailpoint.com/discuss/t/how-do-we-identify-the-list-of-requests-pending-for-a-terminated-user-and-a-way-to-automatically-cancel-them/186316/8 "2025-12-23T16:32:14Z")

</div>

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