Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/21/2023 06:09 AM
Hello,
we have a connection where we need to put the current date format that is : yyyy-MM-dd'T'HH:mm:ssXXX, into the application in question while doing a disable account.
Do we have that attribute in SAVIYNT to respect that format ?
02/21/2023 06:10 AM
Here is a hard coded value that we use for something else : 2099-11-17T10:16:30.863Z
02/22/2023 12:14 PM
Hi Pascal,
If you can help us with a few questions
Thanks
02/23/2023 09:31 AM
Hello Arpit,
here are my answers :
We are close to making it work but in our JSON, what is the SAVIYNT command to obtain the current date and if possible in that format : 2099-11-17T10:16:30.863Z right now we are using this but doesn't work : ${Calendar.getInstance().getTime().format('yyyy-MM-dd')}T10:16:30.863Z\ so Calendar.getInstance is not the right SAVIYNT command to use.
02/23/2023 11:51 AM
Thanks for the response,you can either use :
1. new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS").format(new Date())
2. (new SimpleDateFormat( \"yyyy-MM-dd'T'HH:mm:ss.SSS\" ) ).format(Calendar.getInstance().getTime())
02/23/2023 12:46 PM
Hello Arpit, can i show you the full code line just to be sure ?
02/23/2023 12:47 PM
"httpParams": "{\"URMModifyUserRq\":{\"userInfo\":{\"userId\":\"${user.employeeid}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"userName\":\"${user.firstname} ${user.lastname}\",\"emailID\":\"${user.email}\",\"homeBankId\":\"UNI\",\"loginTimeLow\":\"00:00:01\",\"loginTimeHigh\":\"23:59:59\",\"globalAdmin\":\"N\",\"userACExpiryDate\":\"2099-11-17T10:16:30.863Z\",\"disableFromDate\":\"${Calendar.getInstance().getTime().format('yyyyMMddHHmmss')}\",\"disableTillDate\":\"2099-11-17T10:16:30.863Z\",\"defaultTimeZone\":\"AST\",\"defaultCalendar\":\"G\",\"twoWayAuthentication\":\"N\",\"maxInactiveTime\":\"15\",\"solId\":\"${user.customproperty9}\"},\"roleIdLL\":[{\"bankId\":\"UNI\",\"roleId\":\"${entitlementValue.entitlementID}\"}]}}",
02/23/2023 02:38 PM
Hi Pascal,
Due to underlying framework Saviynt uses, the current way may not give you the desired results, the json with the suggestion may look like this :
"httpParams": "{\"URMModifyUserRq\":{\"userInfo\":{\"userId\":\"${user.employeeid}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"userName\":\"${user.firstname} ${user.lastname}\",\"emailID\":\"${user.email}\",\"homeBankId\":\"UNI\",\"loginTimeLow\":\"00:00:01\",\"loginTimeHigh\":\"23:59:59\",\"globalAdmin\":\"N\",\"userACExpiryDate\":\"2099-11-17T10:16:30.863Z\",\"disableFromDate\":\"${(new SimpleDateFormat('yyyy-MM-ddHH:mm:ss.SSS')).format(Calendar.getInstance().getTime())}\",\"disableTillDate\":\"2099-11-17T10:16:30.863Z\",\"defaultTimeZone\":\"AST\",\"defaultCalendar\":\"G\",\"twoWayAuthentication\":\"N\",\"maxInactiveTime\":\"15\",\"solId\":\"${user.customproperty9}\"},\"roleIdLL\":[{\"bankId\":\"UNI\",\"roleId\":\"${entitlementValue.entitlementID}\"}]}}"
02/23/2023 02:58 PM
I will try on my end, tx a lot