Hello Experts,
This is an identity attribute that calculates the recent Active Directory Login, comparing ‘lastLogon’ and ‘lastLogonTimestamp’.
I want to compare comparelastlogons+10 days with current date. I have created a transform. Your advice will be very helpful to verify whatever I created is correct or not.
{
"id": "removed",
"name": "TestDateCompare",
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "dateMath",
"attributes": {
"expression": "+10d",
"roundUp": false,
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "identityAttribute",
"attributes": {
"name": "comparelastlogons"
}
},
"9999-12-31T23:59:59Z"
],
"ignoreErrors": false
}
}
}
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "now",
"roundUp": false
}
},
"operator": "gt",
"positiveCondition": "Yes",
"negativeCondition": "No"
},
"internal": false
}
Thank you
Best Regards