disableFromDate : dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX", with SAVIYNT current date format

PascalMontreuil
New Contributor III
New Contributor III

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 ?

Pascal Montreuil
8 REPLIES 8

PascalMontreuil
New Contributor III
New Contributor III

Here is a hard coded value that we use for something else : 2099-11-17T10:16:30.863Z

Pascal Montreuil

arpit_b
Saviynt Employee
Saviynt Employee

Hi Pascal,

If you can help us with a few questions

  1.  How are driving the disable action - is it using a form or rules ?
  2. If using a form is your disable date a user input ? 
  3. Saviynt connector type you are using ?

Thanks

PascalMontreuil
New Contributor III
New Contributor III

Hello Arpit,

here are my answers : 

 

  1.  How are driving the disable action - is it using a form or rules ?
    With a UserUpdateRule, the triggers works to iniate the DisableAccountJSON
  2. If using a form is your disable date a user input ? 
    NA
  3. Saviynt connector type you are using ?
    a REST connector

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.

Pascal Montreuil

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())

PascalMontreuil
New Contributor III
New Contributor III

Hello Arpit, can i show you the full code line just to be sure ?

Pascal Montreuil

PascalMontreuil
New Contributor III
New Contributor III

"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}\"}]}}",

Pascal Montreuil

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}\"}]}}"

PascalMontreuil
New Contributor III
New Contributor III

I will try on my end, tx a lot

 

Pascal Montreuil