on 01/03/2023 12:18 PM
we are developing ImportAccountEntJSON we have a requirement such as handling the status(Active/Inactive) in the JSON, The requirement is if enddate as 01/01/4000 then Active and if enddate is less than current date then it should be Inactive.
Tried the following format, however it does not work as expected.
"statuskey": "#CONST#${String strDate =response.endDate; java.text.SimpleDateFormat dt = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.000'Z'"); java.util.Date endDate = dt.parse(strDate); java.util.Date today = new java.util.Date(); if(today.compareTo(endDate) > 0) {System.out.println("Inactive")} else {System.out.println("Active")}}~#~char"
Actual result(s) - Account Status is not getting changed from Manually provisioned to Active or Manually Suspended from Inactive
Use ${Calendar.getInstance().getTime().format('yyyyMMddHHmmss')}Z method to pull the dates and check, similar solution article with detailed conversation at https://forums.saviynt.com/t5/identity-governance/ad-connection-updateaccountjson-date-calculation/m....
Hi @davindersingh
This is currently not a supported feature in EIC. Please submit an Idea in our ideas portal.
Thanks