# Manually Setting LCS with Transform References

**URL:** <https://developer.sailpoint.com/discuss/t/manually-setting-lcs-with-transform-references/10946>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, identity-security-cloud\
**Created:** [May 4, 2023, 10:39pm UTC](https://developer.sailpoint.com/discuss/t/manually-setting-lcs-with-transform-references/10946 "2023-05-04T22:39:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [May 4, 2023, 10:39pm UTC](https://developer.sailpoint.com/discuss/t/manually-setting-lcs-with-transform-references/10946/1 "2023-05-04T22:39:43Z")

</div>

When manually setting the Lifecycle State, such as setting “Inactive”, IDN will perform the expected actions set on the Identity Profile (Disable/Enable). However, we have several Identity Attributes that reference the underlying “Lifecycle State” transform and thus their calculation would be out of sync with this setting.

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

For example setting the description as an Identity Attribute so we can utilize Attribute Sync:

```auto
"lifecycleState": {
    "type": "reference",
    "attributes": {
        "id": "Lifecycle State"
    }
},
"endDate": {#dateFormat/dateMath logic},
"value": "#if($lifecycleState == 'inactive') - Terminated $endDate

```

This would not append ` - Terminated $endDate` to the description as they are still calculated as Active. Aside from getting the LCS value from the Identity Attribute which is not recommended, is there a better solution to this or just a side effect of manually changing a user’s state?

---

<div class="post-metadata">

**Author:** ![LukeHagar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/lukehagar/32/1605_2.png) [@LukeHagar](https://developer.sailpoint.com/discuss/u/LukeHagar)\
**Post date:** [May 11, 2023, 5:52pm UTC](https://developer.sailpoint.com/discuss/t/manually-setting-lcs-with-transform-references/10946/3 "2023-05-11T17:52:49Z")

</div>

Hey @ethompson,

I’m sending you a DM.

---

<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:24pm UTC](https://developer.sailpoint.com/discuss/t/manually-setting-lcs-with-transform-references/10946/5 "2023-07-19T14:24:56Z")

</div>


