[midPoint] How to send the current time into a resource attribute everytime when the account is updated or created?
Ivan Noris
ivan.noris at evolveum.com
Thu Mar 9 08:20:47 CET 2017
Hi,
technically, you could have mapping like this:
<attribute>
<c:ref>ri:yourAttribute</c:ref>
<outbound>
<expression>
<script>
<code>
Date now = new Date();
return
com.evolveum.midpoint.util.MiscUtil.asXMLGregorianCalendar(now);
</code>
</script>
</expression>
</outbound>
</attribute>
On 03/09/2017 03:17 AM, Prabhakara Rao Doddapaneni wrote:
> I am looking for the way to update the changelogcolumn with current
> timestamp as when an account is created or updated in the resource. I
> could not find the solution in documentation. Can somebody help me
> how to do it?
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
--
Ivan Noris
Senior Identity Engineer
evolveum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170309/078e278f/attachment.htm>
More information about the midPoint
mailing list