# HTTP request for revoke action - Workflow

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [November 19, 2024, 1:25pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095 "2024-11-19T13:25:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackSparrow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jacksparrow/32/19685_2.png) [@JackSparrow](https://developer.sailpoint.com/discuss/u/JackSparrow)\
**Post date:** [November 19, 2024, 1:25pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095/1 "2024-11-19T13:25:49Z")

</div>

Hi everyone,  
I have a workflow to revoke only requestable roles for terminated users. I’m stuck with revoke action step. I’m not able to get **requestedFor** ID from the loop input in revoke action step. Any way we can access values from outside loop step?  
[RequestableRoleRemovalWorkflow20241119.json](https://developer.sailpoint.com/discuss/uploads/short-url/jBSpS7Q883GfrzjNOgDEkezZU94.json) (3.2 KB)

Below is the detailed info for each step. Attached workflow details.

Step1: Scheduled trigger  
Step2: API search query to get list of terminated users  
Step3: Loop  
Step4: revoke access using HTTP request

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/5/a/5a71e57a0fd0eb5de972e1058b7dc74d9bec2912.png)

---

<div class="post-metadata">

**Author:** ![zachm117](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zachm117/32/3883_2.png) [@zachm117](https://developer.sailpoint.com/discuss/u/zachm117)\
**Post date:** [November 19, 2024, 3:06pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095/2 "2024-11-19T15:06:32Z")

</div>

Hi @JackSparrow!

Check out this post that does a great job of detailing a few options for how to revoke requested access through a workflow: [Workflow to remove ALL leavers' standing access](https://developer.sailpoint.com/discuss/t/workflow-to-remove-all-leavers-standing-access/13025).

Thank you,

- Zach

---

<div class="post-metadata">

**Author:** ![zachm117](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/zachm117/32/3883_2.png) [@zachm117](https://developer.sailpoint.com/discuss/u/zachm117)\
**Post date:** [November 19, 2024, 3:25pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095/3 "2024-11-19T15:25:10Z")

</div>

Additionally, here is another post specifically for role removal with an example attached: [Workflow to remove roles](https://developer.sailpoint.com/discuss/t/workflow-to-remove-roles/65776).

If your goal is just to remove roles, this should be a simpler solution as you will not need the Loop operator, just be sure to also ass the Wait action mentioned in the solution so automatically assigned roles get removed first.

Thank you,

- Zach

---

<div class="post-metadata">

**Author:** ![JackSparrow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jacksparrow/32/19685_2.png) [@JackSparrow](https://developer.sailpoint.com/discuss/u/JackSparrow)\
**Post date:** [November 19, 2024, 5:47pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095/4 "2024-11-19T17:47:57Z")

</div>

Thanks @zachm117. Went through this and tested Leaver - Scheduled - RemoveStandingAccess. Here the workflow executed successfully, but it didn’t revoke the roles for one of terminated user who has both requestable and BR roles assigned. It throwed me an error for that identity. So SailPoint is not even removing just the requestable role for that user.

---

<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:** [January 18, 2025, 5:48pm UTC](https://developer.sailpoint.com/discuss/t/http-request-for-revoke-action-workflow/90095/5 "2025-01-18T17:48:12Z")

</div>

Closed on January 18, 2025, 5:48pm UTC

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