{ "attributes": { "requiresPeriodicRefresh": "true", "status": { "attributes": { "values": [ { "attributes": { "attributeName": "status", "sourceName": "Okta" }, "type": "accountAttribute" }, "NONE" ] }, "type": "firstValid" }, "ADstate": { "attributes": { "values": [ { "attributes": { "attributeName": "disable_delete", "sourceName": "Okta" }, "type": "accountAttribute" }, "NONE" ] }, "type": "firstValid" }, "terminate": { "attributes": { "values": [ { "firstDate": { "attributes": { "input": { "attributes": { "expression": "now" },"type": "dateMath" }, "inputFormat": "mm/dd/yyyy", "outputFormat": "ISO8601" }, "type": "dateFormat" }, "secondDate": { "attributes": { "expression": "+7d/d", "roundUp": false, "input": { "attributes": { "attributeName": "status_chg_date", "sourceName": "Okta" }, "type": "accountAttribute" }, "inputFormat": "mm/dd/yyyy", "outputFormat": "ISO8601" }, "type": "dateFormat" }, "operator": "gte", "positiveCondition": "yes", "negativeCondition": "no" } ] } }, "value": "#if($status =='ACTIVE' && $ADstate == 'disable')disable#elseif($status =='SUSPENDED'&& $ADstate == 'disable')disable#elseif($status =='SUSPENDED'&& $ADstate == 'delete')delete#elseif($status =='SUSPENDED'&& $ADstate == 'enable')active#elseif($terminate =='yes'&& $ADstate == 'delete')inactive#{else}$status#end" }, "type": "static", "id": "Custom Lifecycle State" }