# Managed Entitlement Customization Rule

**URL:** <https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228>\
**Category:** IIQ Discussion and Questions\
**Tags:** rules, aggregation, entitlements, sailpoint-identity-security\
**Created:** [December 6, 2023, 9:08am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228 "2023-12-06T09:08:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDM007](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SDM007](https://developer.sailpoint.com/discuss/u/SDM007)\
**Post date:** [December 6, 2023, 9:08am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/1 "2023-12-06T09:08:24Z")

</div>

Hi All,

I have a requirement that on entitlement level “mnp” variable should be true. For that I made changes in Manage Entitlement Customization Rule i.e. attribute.setAttribute(“mnp”, true);

To test it I have deleted one entitlement from debug page then executed the aggregation, group aggregation and refresh task, after these task executed successfully, entitlement came back but this value is not updating to true. Also added logs to check it but loggers are not generating for this rule.

What should be done for this or is there any other approach?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [December 6, 2023, 9:30am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/2 "2023-12-06T09:30:43Z")

</div>

Hi Sachin,  
I see this topic is marked as IDN but I believe the debug page you mentioned is only in IIQ. Could you please confirm if we are talking about IDN or IIQ?

Anyway could you please share the rule and app definition?

---

<div class="post-metadata">

**Author:** ![SDM007](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SDM007](https://developer.sailpoint.com/discuss/u/SDM007)\
**Post date:** [December 6, 2023, 9:40am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/3 "2023-12-06T09:40:49Z")

</div>

Yes it is in IIQ. I modified it now.  
This is the rule

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/4/49da5895770dbbf7da32c041db224d8ebe1d0e49.png)

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [December 6, 2023, 9:44am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/4 "2023-12-06T09:44:34Z")

</div>

Thanks, 2 more questions

1. I know it’s obvious but just wanted to confirm - this rule is selected on the application definition and saved right?
2. is mnp attribute present in the ManagedAttribute object config?

---

<div class="post-metadata">

**Author:** ![SDM007](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SDM007](https://developer.sailpoint.com/discuss/u/SDM007)\
**Post date:** [December 6, 2023, 9:46am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/5 "2023-12-06T09:46:37Z")

</div>

Yes it is selected and mnb attribute is present in ManagedAttribute object config.

---

<div class="post-metadata">

**Author:** ![Jarin\_James](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jarin_james/32/3372_2.png) [@Jarin\_James](https://developer.sailpoint.com/discuss/u/Jarin_James)\
**Post date:** [December 6, 2023, 9:52am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/6 "2023-12-06T09:52:55Z")

</div>

Hi @SDM007 ,

ManagedAttributePromotion / Manage Entitlement Customization Rule is triggered only when aggregation task or an identity refresh task for which the “Promote managed attributes” option is selected. I would suggest you to use ResourceObjectCustomization Rule or GroupAggregationRefresh rule.

Below ResourceObjectCustomization rule can be used to set the value to true.

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

```auto
if(object != null){
  object.setAttribute("mnp",true);
}
return object;

```

One additional thing to check is that mnp attribute should be of type boolean. If it is a attribute of String type change the code as shown below

```auto
if(object != null){
  object.setAttribute("mnp","true");
}
return object;

```

---

<div class="post-metadata">

**Author:** ![SDM007](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SDM007](https://developer.sailpoint.com/discuss/u/SDM007)\
**Post date:** [December 6, 2023, 10:03am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/7 "2023-12-06T10:03:05Z")

</div>

Thanks @Jarin_James . I will try this approach

---

<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:** [February 4, 2024, 10:03am UTC](https://developer.sailpoint.com/discuss/t/managed-entitlement-customization-rule/22228/8 "2024-02-04T10:03:19Z")

</div>

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