Transforms to get Auth Source

Hi Experts,

Using Transforms, I want to find the source / identity profile the Identity is coming from.

Other than using Identity Attribute Context, can this be achieved using regular Transform operations?

@chandramohan27 I don’t think we can achieve this using transform other than the Identity Attribute context. I have already tried and it fails for me.

@Santhakumar

Thanks for your reply. I even tried with Identity Attribute Context but it doesn’t return the expected value.

$identity.getSource().getId()

Hi @chandramohan27 ,

Can you tell the use case where you want to directly use this transform?

Also, if it is simply during identity create and you can create a static transform and populate the attribute to hold either the source name or the IP name.

Thanks

1 Like

Hello @chandramohan27

I have achieved this for another client :

{
    "attributes": {
        "value": "#foreach($link in $identity.links)#if($link.application.authoritative)${link.application.name}#{end}#{end}"
    },
    "type": "static"
}

Keep in mind, if the identity has multiple accounts on multiple authoritative sources, they will all be listed.

You can change it further using Apache Velocity if you wish.

Good luck,

1 Like

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