I have the following transform (for identity profile):
{
"name": "Pwd Never Expires",
"type": "static",
"attributes": {
"adUserAccountControl": {
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"sourceName": "Active Directory",
"attributeName": "userAccountControl"
}
},
"null"
]
},
"type": "firstValid"
},
"value": "#if($adUserAccountControl == '66048' || $adUserAccountControl == '65536')True#elseif($adUserAccountControl == 'null')#{else}False#end"
},
"internal": false
}
The transform checks the value of accountAttribute “userAccountControl”.
- If the value is ‘66048’ or ‘65536’, it returns True.
- If the value is ‘null’, it returns nothing.
- Otherwise, it returns False.
This transform works well for all identities except for one.
For some reason, this single identity is not returning True, False, or nothing, but it’s returning the value of accountAttribute “userAccountControl”.
- Other Identities (Correct Output)
- Account Attribute:
- Identity Attribute:
- Single Identity (Incorrect Output)
- Account Attribute:
- Identity Attribute:
I tried removing the #elseif condition, but the issue persists.
Is there anything wrong with the transform?