I noticed this when messing around with the create account native change feature, but there is a stark difference in the data structure of the audit event vs the event trigger.
Why is the value of the singleValueAttributeChanges property a JSON array in the event trigger but a string in the audit log?
Event trigger invocation
{
"singleValueAttributeChanges": [
{
"name": "employeeType",
"newValue": "EMP",
"oldValue": null
},
{
"name": "sAMAccountName",
"newValue": "mc",
"oldValue": null
},
{
"name": "userPrincipalName",
"newValue": "[email protected]",
"oldValue": null
}
]
}
Audit log
{
"singleValueAttributeChanges": "[{\"name\":\"employeeType\",\"newValue\":\"EMP\"},{\"name\":\"sAMAccountName\",\"newValue\":\"mc\"},{\"name\":\"userPrincipalName\",\"newValue\":\"[email protected]\"}]"
}