# Workflow Loop error- RemoveAccess not working inside loop

**URL:** <https://developer.sailpoint.com/discuss/t/workflow-loop-error-removeaccess-not-working-inside-loop/187884>\
**Category:** SHF Discussion and Questions\
**Tags:** access, workflows, sailpoint-identity-security\
**Created:** [November 10, 2025, 5:54pm UTC](https://developer.sailpoint.com/discuss/t/workflow-loop-error-removeaccess-not-working-inside-loop/187884 "2025-11-10T17:54:15Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![claysar2](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/claysar2/32/25830_2.png) [@claysar2](https://developer.sailpoint.com/discuss/u/claysar2)\
**Post date:** [November 12, 2025, 3:12pm UTC](https://developer.sailpoint.com/discuss/t/workflow-loop-error-removeaccess-not-working-inside-loop/187884/15 "2025-11-12T15:12:38Z")

</div>

Hi Noor,

I want to only revoke _some_ of their access if they have an EMP account set up.

in the EMP (Epic) source, the entitlements I want to remove are the ones that have the type: linkedSubTemplate. There is an associated entitlement attribute “LinkedSubTemplateIDs” on the EMP account, which holds the names of the entitlements. This entitlement attribute is what I am using as the input for the loop.

 ![Screenshot 2025-11-12 100450 alt](https://global.discourse-cdn.com/sailpoint/original/3X/f/2/f2868ebadc11c7d11ccbb82510edf2288460889d.png)

I have checked that when I search using this input in the loop I get the correct mapped values from Get Access, but get the 400 error from Manage Access.

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/workflow-loop-error-removeaccess-not-working-inside-loop/187884)._
