# Unable to PATCH role owner in workflow

**URL:** <https://developer.sailpoint.com/discuss/t/unable-to-patch-role-owner-in-workflow/183982>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, apis\
**Created:** [September 29, 2025, 8:34pm UTC](https://developer.sailpoint.com/discuss/t/unable-to-patch-role-owner-in-workflow/183982 "2025-09-29T20:34:52Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MattUribe](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/matturibe/32/20300_2.png) [@MattUribe](https://developer.sailpoint.com/discuss/u/MattUribe)\
**Post date:** [September 30, 2025, 3:59pm UTC](https://developer.sailpoint.com/discuss/t/unable-to-patch-role-owner-in-workflow/183982/5 "2025-09-30T15:59:03Z")

</div>

Ah, you have a loop - recall that variables that are configured outside of a loop are not available within the loop, unless you add them to the context. I like to use a define variable step to add all the values I might need inside the loop, then add that define variable itself to the loop context.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/e/d/ede4c26dedce37ce4ada930895c4f6d2c4c366f0.png)

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/unable-to-patch-role-owner-in-workflow/183982)._
