# Need a transform that will set the Identity attribute of office to value from other identity attribute based on employee type

**URL:** <https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, identity-security-cloud\
**Created:** [October 30, 2025, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780 "2025-10-30T13:16:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpowers1](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dpowers1](https://developer.sailpoint.com/discuss/u/dpowers1)\
**Post date:** [October 30, 2025, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/1 "2025-10-30T13:16:45Z")

</div>

Need a transform that will set the Identity attribute of office to value from other identity attribute based on employee type where they are contractlabor or student. Want to set the office to facility they will be at

> ‼ Please be sure you’ve read the [docs](https://developer.sailpoint.com/idn/docs/) and [API specs](https://developer.sailpoint.com/idn/api/getting-started) before asking for help. Also, please be sure you’ve [searched](https://developer.sailpoint.com/discuss/search?expanded=true) the forum for your answer before you create a new topic.

## Please consider addressing the following when creating your topic:

- What have you tried?
- What errors did you face (share screenshots)?
- Share the details of your efforts (code / search query, workflow json etc.)?
- What is the result you are getting and what were you expecting?

---

<div class="post-metadata">

**Author:** ![prashanthrns](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@prashanthrns](https://developer.sailpoint.com/discuss/u/prashanthrns)\
**Post date:** [October 30, 2025, 1:22pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/2 "2025-10-30T13:22:16Z")

</div>

Hi @dpowers1 , the value from other identity attribute can be retrieved using the “Reference” operation - [Reference | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/reference)

---

<div class="post-metadata">

**Author:** ![sup3rmark](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sup3rmark/32/36229_2.png) [@sup3rmark](https://developer.sailpoint.com/discuss/u/sup3rmark)\
**Post date:** [October 30, 2025, 1:48pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/3 "2025-10-30T13:48:21Z")

</div>

What have you tried so far?

---

<div class="post-metadata">

**Author:** ![dpowers1](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dpowers1](https://developer.sailpoint.com/discuss/u/dpowers1)\
**Post date:** [October 30, 2025, 1:49pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/4 "2025-10-30T13:49:45Z")

</div>

I have tried this and get error on the field when i do a preview

```auto
{
  "name": "SetIdentityAttributeForSpecificEmployeeTypes",
  "type": "conditional",
  "attributes": {
    "test": {
      "type": "contains",
      "attributes": {
        "values": ["ContractLabor", "Student", "Intern", "Temp"],
        "value": {
          "type": "sourceAttribute",
          "attributes": {
            "name": "employeeType"
          }
        }
      }
    },
    "then": {
      "type": "sourceAttribute",
      "attributes": {
        "name": "fieldName"
      }
    },
    "else": {
      "type": "static",
      "attributes": {
        "value": ""
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![gmilunich](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gmilunich/32/8431_2.png) [@gmilunich](https://developer.sailpoint.com/discuss/u/gmilunich)\
**Post date:** [October 30, 2025, 3:11pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/5 "2025-10-30T15:11:52Z")

</div>

> [@prashanthrns](#):
>
> Hi @dpowers1 , the value from other identity attribute can be retrieved using the “Reference” operation - [Reference | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/reference)

The mentioned Reference operation is for referencing another transform, not another Identity Attribute, so it will not work in this case.

> [@dpowers1](#):
>
> I have tried this and get error on the field when i do a preview

I would consider looking at the Identity Attribute Transform for the sourceAttribute:  
SEE NOTE BELOW. No Longer Recommend.

> **[Identity Attribute | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/identity-attribute)**
>
> Get a user's identity attribute's value.

Also, what is the error that you are getting?

---

<div class="post-metadata">

**Author:** ![sup3rmark](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sup3rmark/32/36229_2.png) [@sup3rmark](https://developer.sailpoint.com/discuss/u/sup3rmark)\
**Post date:** [October 30, 2025, 3:45pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/6 "2025-10-30T15:45:11Z")

</div>

It should also be noted that the Identity Attribute transform is _not recommended_ when it can be avoided; if possible, you should use the Account Attribute transform instead (or the Reference primitive to reference another transform). Using the Identity Attribute transform can result in attribute values not updating in a timely manner as Identity Attribute values may not calculate in the correct order, resulting in the transform being calculated before the referenced Identity Attribute has been updated.

See the warning on the linked transform documentation:

> This transform is **not** intended for use within an another identity profile attribute’s calculation. Identity attribute calculations are multi-threaded processes, and there is no guarantee that a specific attribute has current data, or even exists, at the time of calculation within any given transform. _Referencing identity attributes within another identity attribute’s calculation can lead to identity exceptions._

---

<div class="post-metadata">

**Author:** ![gmilunich](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gmilunich/32/8431_2.png) [@gmilunich](https://developer.sailpoint.com/discuss/u/gmilunich)\
**Post date:** [October 30, 2025, 5:03pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/7 "2025-10-30T17:03:04Z")

</div>

Good catch. I looked right past that note.

---

<div class="post-metadata">

**Author:** ![dpowers1](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@dpowers1](https://developer.sailpoint.com/discuss/u/dpowers1)\
**Post date:** [October 30, 2025, 6:44pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/8 "2025-10-30T18:44:29Z")

</div>

Thank you for that information. It actually helped me fix another transform I was having trouble with.

---

<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:** [December 29, 2025, 6:44pm UTC](https://developer.sailpoint.com/discuss/t/need-a-transform-that-will-set-the-identity-attribute-of-office-to-value-from-other-identity-attribute-based-on-employee-type/186780/9 "2025-12-29T18:44:59Z")

</div>

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