# Adding membership criteria via Script

**URL:** <https://developer.sailpoint.com/discuss/t/adding-membership-criteria-via-script/194759>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security\
**Created:** [January 31, 2026, 4:56pm UTC](https://developer.sailpoint.com/discuss/t/adding-membership-criteria-via-script/194759 "2026-01-31T16:56:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [January 31, 2026, 5:18pm UTC](https://developer.sailpoint.com/discuss/t/adding-membership-criteria-via-script/194759/2 "2026-01-31T17:18:13Z")

</div>

Hi @ssel ,

I see issue with the body that is being passed to the api call via ps script  
Refere this [IDN: Update Role Membership using Patch API Call](https://developer.sailpoint.com/discuss/t/idn-update-role-membership-using-patch-api-call/6787)  
To change the the body of patch call then try again

For try to share the ps script by removing sensitive data maybe I can help you out there

Thanks in advance  
Avinash

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/adding-membership-criteria-via-script/194759)._
