# Permanent Edit Mode

**URL:** <https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658>\
**Category:** IIQ Discussion and Questions\
**Created:** [June 4, 2021, 5:32pm UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658 "2021-06-04T17:32:49Z")\
**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 4, 2021, 5:32pm UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658/1 "2021-06-04T17:32:49Z")

</div>

Hi Team, changing an identity attribute’s edit mode to permanent allows UI changes to those attributes without the source application overwriting that on a refresh. However, when I change the value through a rule, it does not permanently save.

Is this by design or a bug?

---

<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 4, 2021, 7:55pm UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658/2 "2021-06-04T19:55:53Z")

</div>

Hey @AnwarK, thanks for posting this question. Let me do some digging with the product team and we will circle back with some insights for you.

---

<div class="post-metadata">

**Author:** ![anon85340957](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@anon85340957](https://developer.sailpoint.com/discuss/u/anon85340957)\
**Post date:** [June 4, 2021, 9:05pm UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658/3 "2021-06-04T21:05:57Z")

</div>

What rule type are you using to ‘change the value through a rule’? Is it an IdentityAttribute rule or just a rule you are executing via some other means?

A lot of the time in rules, you don’t have to explicitly save the object you’re working in the rule because the IdentityIQ is expecting that rule hook to change or return something and IdentityIQ will perform the save of the object for you. ​  
Sometimes we might use a rule hook for something beyond what the rule was originally meant for. If you’re accessing and modifying an object the rule hook doesn’t expect you to change, or perhaps we are just kicking off a rule from the IdentityIQ console, the rule must explicitly save that object itself and commit the transaction.

---

<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 7, 2021, 8:18am UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658/4 "2021-06-07T08:18:49Z")

</div>

I’m using a provisioning plan within a workflow to change this value. A snippet is below:

ProvisioningPlan planContractor = new ProvisioningPlan();

planContractor.setIdentity(context.getObject(Identity.class, contractorName));

planContractor.add(ProvisioningPlan.APP\_IIQ, contractorName, “loginID”, ProvisioningPlan.Operation.Set, newNetID);

planContractor.add(ProvisioningPlan.APP\_IIQ, contractorName, “email”, ProvisioningPlan.Operation.Set, newEmail);

planContractor.add(ProvisioningPlan.APP\_IIQ, contractorName, “inactive”, ProvisioningPlan.Operation.Set, true);

Provisioner p = new Provisioner(context);

if (log.isDebugEnabled()) {

log.debug(planContractor.toXml());

}

p.execute(planContractor);

---

<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:03pm UTC](https://developer.sailpoint.com/discuss/t/permanent-edit-mode/658/5 "2021-06-08T18:03:34Z")

</div>

The solution is to make sure a “user” is defined in the attribute metadata. That is what makes the attribute change stick. Once this is set through the rule, it works as expected.

---

<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/permanent-edit-mode/658/6 "2023-07-19T14:25:07Z")

</div>

Closed on July 19, 2023, 2:25pm UTC


