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

Possible to set account status in saviynt based on date?

jralexander137
Regular Contributor
Regular Contributor

I was wondering if its possible to set account status in saviynt based on a date field coming from downstream system? For example, if the date is in the past, the account object gets marked as inactive, if its today's date or in the future it gets marked as active. This would be via a rest connector.

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Yes its possible you can use CONST to manipulate status


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

Not sure I follow. Is CONST used in JSON configs to leverage code or something?

Sample 

"customproperty1": "#CONST#${String accountDate = response.attributes.dateField; def currentDate = new Date().format('yyyy-MM-dd'); def status = (accountDate < currentDate) ? '2' : '1'; return status;}~#~char",

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