# Filtering Entitlements

**URL:** <https://developer.sailpoint.com/discuss/t/filtering-entitlements/677>\
**Category:** IIQ Discussion and Questions\
**Created:** [June 8, 2021, 6:10pm UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677 "2021-06-08T18:10:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnwarK](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@AnwarK](https://developer.sailpoint.com/discuss/u/AnwarK)\
**Post date:** [June 8, 2021, 6:10pm UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/1 "2021-06-08T18:10:29Z")

</div>

Hi Team,

I am trying to stop bringing in certain entitlements that match a condition. I am doing this in a “Managed Entitlement Customization Rule”. I can see the logic is following the path I need to because of debugging statements, but when I return null to stop bringing in the ManagedAttribute, it just disregards this and still brings it in.

Is there more that needs to be done instead of just returning null? (this same logic works fine in a normal customization rule to filter out actual user accounts)

Thanks,  
Anwar

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [June 8, 2021, 6:47pm UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/2 "2021-06-08T18:47:35Z")

</div>

Hey again @AnwarK, Thank you for posting. We will look into this and circle back with some insights on this for you soon.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [June 10, 2021, 1:29am UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/3 "2021-06-10T01:29:29Z")

</div>

Hey @AnwarK ,

Thanks for your patience on this question. Here’s what I have learned: The Managed Attribute Customization Rule cannot prevent the entitlement from being promoted to the catalog. By the time this rule is executed, the ManagedAttribute object has already been created, and the rule can only modify/enhance its attributes. You should consider using the “normal” Customization Rule.

---

<div class="post-metadata">

**Author:** ![AnwarK](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@AnwarK](https://developer.sailpoint.com/discuss/u/AnwarK)\
**Post date:** [June 11, 2021, 10:37am UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/4 "2021-06-11T10:37:48Z")

</div>

Hi @jordan.violet , the normal customization rule worked for me. Thanks!

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [June 11, 2021, 2:04pm UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/5 "2021-06-11T14:04:40Z")

</div>

I am delighted to hear that it worked well for you, @AnwarK. Thanks again for posting and we look forward to seeing you around the community more in the future!

---

<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:** [July 19, 2023, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/filtering-entitlements/677/6 "2023-07-19T14:25:08Z")

</div>


