<div dir="ltr">Thanks Pascal, the if exists check was exactly what I was looking for.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 18, 2023 at 10:17 AM Pascal PÉRICHON via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
What do you mean exactly by "checking for a focus user password"? <br>
Something like that :<br>
<br>
check if a password exists :<br>
<br>
if (focus?.credentials?.password?.value != null) { return true }<br>
<br>
check if the first password was create using the creation timestamp :<br>
<br>
if (focus?.credentials?.password?.metadata?.createTimestamp != <br>
null) ....<br>
<br>
check if the password was modified at least one time using the last <br>
modification timestamp :<br>
<br>
if (focus?.credentials?.password?.metadata?.modifyTimestamp != <br>
null) ...<br>
<br>
(the interrogation points are very important to secure the code)<br>
<br>
best regards<br>
-------<br>
Pascal PÉRICHON<br>
Université Paris Cité<br>
<br>
<br>
Le 18/10/2023 à 18:07, Drew Roberts via midPoint a écrit :<br>
> Hey all, does anyone have any ideas/experience checking for a focus <br>
> user password in an objectTemplate? I basically just want to do <br>
> something like:<br>
><br>
> <path>$focus/credentials/password</path><br>
> ...<br>
> <code> if (password) { return true } </code><br>
><br>
> I'm planning to use that as a condition for a specific inducement.<br>
><br>
> Thanks for any help you can provide!<br>
><br>
> _______________________________________________<br>
> midPoint mailing list<br>
> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
> <a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="font-family:sans-serif;font-size:12px;line-height:1.5em"><span style="font-weight:bold">Drew Roberts</span> | <span style="font-weight:bold">Systems Administrator II</span><br>IT Platform Engineering, Azusa Pacific University<br><a href="https://apu.edu" target="_blank">apu.edu</a><br><br>“Do
not conform to the pattern of this world, but be transformed by the
renewing of your mind. Then you will be able to test and approve what
God’s will is—his good, pleasing, and perfect will.” Romans 12:2<br><br><img style="width: 210px;" src="https://www.apu.edu/static/src/sites/strategic-communication-engagement/images/apu_125_logo.png" alt="APU logo"></div></div></div>