ScriptEval Examples
This document contains a few examples of ScriptEval configurations
Increment the value of userAccountControl with +2
{
"name": "ScriptEval",
"description": "Add +2 to userAccountControl",
"config": {
"source": "items.forEach((id, item) => { const val = item.userAccountControl[0]; const increment = 2; if (val !== '' && !isNaN(val)) { item.userAccountControl[0] = String(Number(val) + increment); }});"
}
}Create an item form a json-structure
{
"name": "ItemPropertyAdd",
"config": {
"values": {
"customer": "@json:${state.body.ocs.data.users.all}"
}
}
}Generate sAMAccountName by substring of givenName and sn
Count number of days since lastLogonTimeStamp
PreviousmTLS in Apache HTTPD using a Self-Signed CA and Client CertificatesNextSet AuthnContextClassRef
Last updated