<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>newly created user... too much new with OID=null or enough new
with an OID ?</p>
<p>The OID in an object is generated only when the object is in the
database (or not too far from database...).</p>
<p>When the object is new and exists only in memory, the OID is null
and all functions will not work properly.</p>
<p>createAccountActivationLink use the OID and put it in the
generated URL.</p>
<p>So check the value of user.oid before.</p>
<p>Good luck<br>
</p>
<div class="moz-cite-prefix">Le 28/11/2023 à 17:45, Drew Roberts via
midPoint a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAPdfONhYkrrvDH0qV9nFMtUbtrWCf5mcT+XrBoc4khEsHC7XyA@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">What process do you guys use to prompt a newly
created user to make a password? I've tried doing something like<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">def
user = (event as
ModelEvent).focusContext.objectNew?.asObjectable() as UserType<br>
def link = midpoint.createAccountActivationLink(user)<br>
</blockquote>
inside a general notifier to send a mail nonce but I get a null
token when I do that so I'm guessing I'm doing it wrong.<br
clear="all">
<br>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="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"
moz-do-not-send="true">apu.edu</a> <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" moz-do-not-send="true"></div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>