Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest connector Last logon date not getting imported

vivekmistry
New Contributor III
New Contributor III

Hi,

Trying to fetch last logon date from a rest connector but the date format is in GMT, dates not getting updated in last logon date in accounts table.

Config used:

"dateFormat": "yyyy-MM-dd'T'HH:mm:ss",

"colsToPropsMap":

"LASTLOGONDATE" : "lastLoggedTime~#~date" --> not working

"LASTLOGONDATE" : "lastLoggedTime~#~datetime" --> not working

"lastlogondate" : "${SimpleDateFormat simpleformat = new SimpleDateFormat(\"YYYY-MM-DD HH:MM:SS\"); return simpleformat.format(lastLoggedTime)}~#~datetime" --> Not working

vivekmistry_0-1728378922224.png

Above image has the date in logs but not getting updated.

API doc timing:

vivekmistry_1-1728378998230.png

 

 

 

3 REPLIES 3

NM
Honored Contributor III
Honored Contributor III

LASTLOGONDATE" : "#CONST#reaponse.lastlogindate.format('MM-dd-yyyy')}~#~date" 

@vivekmistry try abive


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

vivekmistry
New Contributor III
New Contributor III

Started working with global setting Thanks 🙂

{
"globalSettings": {
"dateFormat": "yyyy-MM-dd'T'HH:mm:ss"
},

NM
Honored Contributor III
Honored Contributor III

@vivekmistry did you assign the lastlogin date directly?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'