# Method for display name in Identity

**URL:** <https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [May 16, 2023, 12:56pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240 "2023-05-16T12:56:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruschel](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@ruschel](https://developer.sailpoint.com/discuss/u/ruschel)\
**Post date:** [May 16, 2023, 12:56pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/1 "2023-05-16T12:56:43Z")

</div>

Hello, I need a method similar to getReferenceIdentityAttribute, which returns the display name of another identity, I need to pass the id of the identity and it returns me the displayName.

Tks

---

<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:** [May 31, 2023, 2:58pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/3 "2023-05-31T14:58:13Z")

</div>

Hi Eduardo,

Are you looking to do this via API, rule, transform…

---

<div class="post-metadata">

**Author:** ![ruschel](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@ruschel](https://developer.sailpoint.com/discuss/u/ruschel)\
**Post date:** [June 5, 2023, 1:11pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/4 "2023-06-05T13:11:12Z")

</div>

Hi Colin,

using transform to get displayName

---

<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 5, 2023, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/5 "2023-06-05T13:16:41Z")

</div>

You would use the get reference identity attribute rule to accomplish this in transforms.

> **[Get Reference Identity Attribute | SailPoint Developer Community](https://developer.sailpoint.com/idn/docs/transforms/operations/get-reference-identity-attribute)**
>
> Get another user's identity attribute.

---

<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:** [June 5, 2023, 3:39pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/6 "2023-06-05T15:39:34Z")

</div>

You can modify the example that Colin linked to get the information that you are looking for.

Just a note if you are using the IDN VS Code extension, the “Evaluate” function will return that custom attributes are “Missing or Invalid” when running this transform. During my testing, email and displayName returned values, but department, city, and location gave the error shown in the screenshot, even though the values and attributes were present. When the transform was placed in IDN and set up in an identityProfile, it worked correctly, so the issue is likely with how the VS Code Extension handles these. Just wanted to post this tip in case you ran into it.

 ![Screenshot 2023-06-05 at 11.33.19 AM](https://global.discourse-cdn.com/sailpoint/original/2X/d/dbf11067bde873103c55e718f0807391b23710e5.png)

---

<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:** [August 7, 2023, 1:06pm UTC](https://developer.sailpoint.com/discuss/t/method-for-display-name-in-identity/11240/8 "2023-08-07T13:06:09Z")

</div>

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