# displayName Transform

**URL:** <https://developer.sailpoint.com/discuss/t/displayname-transform/66952>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, transforms\
**Created:** [June 17, 2024, 7:36am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952 "2024-06-17T07:36:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rallabhandiaparna](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rallabhandiaparna](https://developer.sailpoint.com/discuss/u/rallabhandiaparna)\
**Post date:** [June 17, 2024, 7:36am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/1 "2024-06-17T07:36:28Z")

</div>

Hello Folks,

Has anyone used the new “Display Name” primitive operation in a transform? The documentation [Display Name | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/display-name) has got the **name** and the **type** swapped. I am looking for a bit more clarity on the JSON body that needs to be used with this operation.

Thank you in advance for you support.

Cheers,  
Aparna

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 17, 2024, 7:49am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/2 "2024-06-17T07:49:03Z")

</div>

> [@rallabhandiaparna](#):
>
> clarity

Hi @rallabhandiaparna,

Welcome to the Sailpoint developper community !

Based on this transform documentation, you do not need any inputs for this transform.

It will take automatically user preffered name (if exist) or given name (firstname) and append with user familyname (lastname).

For example in your mapping attribute you can your identityattribute displayname by displayname transform directly you must select in attribute column one arbitrary attribute (it will be ignored) and in the transform column you can select your displayname transform.

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

in my screenshot i select another transform as example.

---

<div class="post-metadata">

**Author:** ![rallabhandiaparna](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rallabhandiaparna](https://developer.sailpoint.com/discuss/u/rallabhandiaparna)\
**Post date:** [June 17, 2024, 8:01am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/3 "2024-06-17T08:01:38Z")

</div>

> [@baoussounda](#):
>
> lumn you can select your displayname

Thank you Ousmane for your response. I did try creating the transform without any input just using the body mentioned in the document. It fails to create the transform:

```auto
{
    "detailCode": "400.1.0 Required data missing or empty",
    "trackingId": "bf4dfbacb08449f88977d7f77907c466",
    "messages": [
        {
            "locale": "en-US",
            "localeOrigin": "DEFAULT",
            "text": "Required field \"attributes\" was missing or empty."
        },
        {
            "locale": "und",
            "localeOrigin": "REQUEST",
            "text": "Required field \"attributes\" was missing or empty."
        }
    ],
    "causes": []
}

```

Thanks,  
Aparna

---

<div class="post-metadata">

**Author:** ![rallabhandiaparna](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rallabhandiaparna](https://developer.sailpoint.com/discuss/u/rallabhandiaparna)\
**Post date:** [June 17, 2024, 8:03am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/4 "2024-06-17T08:03:26Z")

</div>

This is the JSON body I am using:

```auto
{
  "name": "Display Name transform",
  "type": "displayName"
}

```

---

<div class="post-metadata">

**Author:** ![GOKUL\_ANANTH\_M](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gokul_ananth_m/32/14416_2.png) [@GOKUL\_ANANTH\_M](https://developer.sailpoint.com/discuss/u/GOKUL_ANANTH_M)\
**Post date:** [June 17, 2024, 8:04am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/5 "2024-06-17T08:04:24Z")

</div>

Hi @rallabhandiaparna ,

While looking into this “Display Name” transforms documentation, there is no need of inputs.

This transform will take the preffered name (if present) over the given name (or) the given name and adds with the family name. For example, lets say -

1. given name - ram  
preffered name - null  
family name - mohan  
transform’s output → ram mohan

2. given name - ram  
preffered name - raja  
family name - mohan  
transform’s output → raja mohan

Only for the use case above it will work. If you need to append any of the values like middleInitial or other, better way is to move to the firstValid transform with concat operations.

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 17, 2024, 8:04am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/6 "2024-06-17T08:04:59Z")

</div>

you must map at least one attribute :

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

---

<div class="post-metadata">

**Author:** ![GOKUL\_ANANTH\_M](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gokul_ananth_m/32/14416_2.png) [@GOKUL\_ANANTH\_M](https://developer.sailpoint.com/discuss/u/GOKUL_ANANTH_M)\
**Post date:** [June 17, 2024, 8:05am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/7 "2024-06-17T08:05:20Z")

</div>

```auto
{
  "name": "displayName",
  "type": "Display Name Transform"
}

```

type will be `Display Name Transform`

Change the type and test the transform

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 17, 2024, 8:06am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/8 "2024-06-17T08:06:30Z")

</div>

I will to create it now in my side

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 17, 2024, 8:13am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/9 "2024-06-17T08:13:11Z")

</div>

I got the same error :

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

Can you provide the exact context what you want to use this transform ?

this type can be referenced directly into another a transform.

This is new and think also to acheive your need concantenate transform.

---

<div class="post-metadata">

**Author:** ![varshini303](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@varshini303](https://developer.sailpoint.com/discuss/u/varshini303)\
**Post date:** [June 17, 2024, 8:44am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/10 "2024-06-17T08:44:15Z")

</div>

Hi @baoussounda , Looks like both the types `displayName` and `Display Name Transform` works only when the attributes field is populated with something.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/3/3dc983a0f263c9443748951da087b5266dafa83f.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/d/db0468c2727b80cf4bff708b8d6396d91d61c925.png)

---

<div class="post-metadata">

**Author:** ![vguleria](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vguleria/32/7884_2.png) [@vguleria](https://developer.sailpoint.com/discuss/u/vguleria)\
**Post date:** [June 17, 2024, 8:48am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/11 "2024-06-17T08:48:14Z")

</div>

Hi @rallabhandiaparna

Looks like the “attributes” field is mandatory here. So when i gave the attribute fields and given random input in it, then the transform was created properly.

“Type” should be displayName as per the documentation although the example in documentation has a typo in it.

```auto
{
  "name": "test displayname",
  "type": "displayName",
  "attributes":{
    "type":"static",
    "value":"test Value"

  }
}

```

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

but it does not do anything when i tested it from the identity profile. So looks like it is standard transform which will generate the displayname as given name or preferred name + family name as per the documentation.

If you would like to generate the displayname based on some other fields, i believe then you can make use of concat transform.

I hope this helps.

Regards  
Vikas.

---

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [June 17, 2024, 8:51am UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/12 "2024-06-17T08:51:47Z")

</div>

@rallabhandiaparna based on above responses and my suggestion you have differents options :

- See with sailpoint this part of documentation that not exactly indicate that attributes is required.

- Or use contenate transform for achieve your need.

---

<div class="post-metadata">

**Author:** ![rallabhandiaparna](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rallabhandiaparna](https://developer.sailpoint.com/discuss/u/rallabhandiaparna)\
**Post date:** [June 17, 2024, 10:11pm UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/13 "2024-06-17T22:11:03Z")

</div>

Thank you all for your inputs. I was curious about how this transform works. I might just use concat for now.

Thanks again and have a great day.

Cheers,  
Aparna

---

<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 16, 2024, 10:11pm UTC](https://developer.sailpoint.com/discuss/t/displayname-transform/66952/14 "2024-08-16T22:11:55Z")

</div>

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