firstValid
is the best solution for correcting null values. Here is a simple example that will look for a mail
attribute from AD, and if it is not available it will use the static string value none
.
{
"id": "Determine Email",
"type": "lower",
"attributes": {
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"attributes": {
"attributeName": "mail",
"sourceName": "Active Directory"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "none"
},
"type": "static"
}
]
}
}
}
}