[midPoint] Adding days/hours/minutes to validTo in midpoint and date/time formatting in the UI
Collins, Kevin
K.J.Collins at hw.ac.uk
Thu Nov 17 12:31:51 CET 2022
Hi everyone,
I've got stuck again in putting together a midpoint proof-of-concept and
I would really appreciate some help.
The problem is this. Inbound data from HR to the IDM might contain an
end_date. If the end_date is null or empty the user has not indicated
that they are leaving. If the end_date has a value then that value is a
date in the form 'yyyy-MM-dd' and is the person's last working day.
If I map this to $focus/activation/validTo in schemaHandling in the
resource the value goes in without complaint and shows up in
midpoint/User/activation. MidPoint, though, assumes a date of 12:00AM
and so would disable the user account at the _start_ of the working day
rather than at the end. How can I add 23h59m onto the end_date so that
the departing user still has access on their last day?
Second issue I'm having, since I've been poking about in dates/times...
Is it possible to make dates/times in midPoint show dates and times in
UK English form (dd/MM/yyyy) rather than the US format (MM/dd/yyyy) and,
similarly to have times show in 24-hour clock form rather than 12-hour
with AM/PM indication?
Thanks in advance for any help you can give me.
-Kev_C
--
Kevin Collins
EDINBURGH, EH14 4AS,
Scotland, UK
________________________________
Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:
1. Heriot-Watt University, a Scottish charity registered under number SC000278
2. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.
More information about the midPoint
mailing list