Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
Hi Forum,
I do have problem in settings up transform in attribute “distinguishName”. I want to subtract 18 characters on the distinguishName value and I want to get the end value.
if the value is India, the transform will return “india” value.
if the value is not India, the transform will return “USA” value.
I have tried this transform on my end. Maybe there’s something wrong in my code that returns Failed value on my custom attribute added on my Identity Profile.
Hi @testipona ,
For your requirement, instead of calculating substrings, just check like if the DN contains the string “DC=India”, then display India, else display USA
@testipona you cannot use substring here in this condition as the position of the string is not same every time for e.g. name will definitely different. It’s not a static DN.
You can use the contains operation try using the transform shared by @baoussounda .