Identity Attributes

Hi,

I’m using a transform to check for Management level from workday source and set the Identity attribute accordingly, but there are some users without management level. I have used firstvalid to cover the use case.

I’m not able to see the Identity attribute named “ManagementLevel” for the users who donot have the management levels, Instead I looking to have the attribute as empty string.

@chandramohan2706 If the value of managementLevel value is null, what other return values are you passing in the return?

Could you please share your firstValid transformation functional logic?.

@anneragh

Here is the transform logic i’m using.

{

"name": "Transform_ManagementLevel",
"type": "firstValid",
"attributes": {
    "values": [
        {
            "attributes": {
                "managementLevel": {
                    "attributes": {
                        "sourceName": "Workday",
                        "attributeName": "MANAGEMENT_LEVEL_ID"
                    },
                    "type": "accountAttribute"
                },
                "value": "#if($managementLevel==\"Contractor\")10 #elseif($managementLevel==\"Supervisor\")9 #elseif($managementLevel==\"Manager\")8 #elseif($managementLevel==\"Director\")7 #elseif($managementLevel==\"Vice President\")6 #elseif($managementLevel==\"Senior Vice President\")5 #elseif($managementLevel==\"President\")4 #elseif($managementLevel==\"Executive Vice President\")3 #elseif($managementLevel==\"CEO\")2 #else #end"
            },
            "type": "static"
        },
        {
            "attributes": {
                "value": ""
            },
            "type": "static"
        }
    ]
},
"internal": false

}

@chandramohans27

Thanks for sharing the JSON snippet. When MANAGEMENT_LEVEL_ID is null, your transformation is returning the empty static value. That is the reason you have the empty value.

If managementLevel is null, what attribute do you want to set? You have to replace

{
            "attributes": {
                "value": "<Replace empty value with the value your looking for>"
            },
            "type": "static"
        }

@anneragh

Thanks for checking.

Is there an option to have the identity attribute there even if the value is empty.

I apologize for the confusion. If the value is empty, the identity attribute is not visible in the user interface or in the API?

@anneragh

If the value is empty, the identity attribute is not visible in the user interface as well as in API.

I can only view all the attributes in the Identity profile preview section.

Hi @chandramohans27,

By design, if an Identity Attribute value is empty or null, it will not show in the Identity details. This is to prevent unmapped attributes in the Identity Profile showing up.

You can try passing a " " (space) or another suitable default value in the transform instead.

Hope this helps!

1 Like

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