<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Roboto;
        panose-1:2 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Elsa,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">First, Thanks for your answer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Sadly this part works just great. My problem is that I would like to add a email verification system (with link).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">As it already exists for self-registration I think that it must be possible to reuse it for API created user but I can not found information about it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3" valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#E22D36;mso-fareast-language:FR-CH">Loïc Schamber</span></b><span lang="EN-GB" style="mso-fareast-language:FR-CH">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH"> | Junior IT Consultant<br>
 </span><span lang="EN-GB" style="mso-fareast-language:FR-CH"> <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="188" valign="top" style="width:141.0pt;border:none;border-right:solid #E22D36 1.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.serial.ch/"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="193" height="69" style="width:2.0104in;height:.7187in" id="_x0000_i1032" src="cid:image001.png@01D61335.55561E70" alt="logo"></span></a><span style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td width="10" style="width:7.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="mso-fareast-language:FR-CH"> <o:p></o:p></span></p>
</td>
<td width="497" valign="top" style="width:372.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36;mso-fareast-language:FR-CH"><a href="mailto:lschamber@serial.ch"><span style="color:#E22D36">lschamber@serial.ch</span></a>
 |  <a href="tel:+41%2022%20555%2027%2069"><span style="color:#919191">+41 22 555 27 69</span></a>
<br>
</span><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH">Chemin du Pré-Fleuri 5 – CH 1228 Plan-les-Ouates
<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="bottom" style="border:none;border-right:solid #E22D36 1.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.linkedin.com/company/redcactus-by-positivethinkingcompany" target="_blank"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="19" height="19" style="width:.1979in;height:.1979in" id="_x0000_i1031" src="cid:image002.png@01D61335.55561E70" alt="LinkedIn"></span></a><span style="mso-fareast-language:FR-CH"> 
</span><a href="https://www.instagram.com/positivethinkingcompany" target="_blank"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="19" height="19" style="width:.1979in;height:.1979in" id="_x0000_i1030" src="cid:image003.png@01D61335.55561E70" alt="Instagram"></span></a><span style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td valign="bottom" style="padding:0cm 0cm 0cm 0cm"></td>
<td valign="bottom" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="mso-fareast-language:FR-CH"><a href="www.serial.ch"><b><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36">Redcactus by SERIAL
</span></b><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36">www.serial.ch</span></a></span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><span style="mso-fareast-language:FR-CH"><a href="www.positivethinking.co"><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#919191">www.positivethinking.co</span></a></span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><span lang="EN-GB" style="font-size:3.5pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH"> </span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:white;mso-fareast-language:FR-CH">
<hr size="2" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:8.0pt;font-family:Roboto;color:#E22D36;mso-fareast-language:FR-CH">Help save paper, do you really need to print this email?</span></b><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><i><span lang="EN-GB" style="font-size:8.0pt;font-family:Roboto;color:black;mso-fareast-language:FR-CH">The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The
 information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction
 or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot
 be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
</span></i><i><span style="font-size:8.0pt;font-family:Roboto;color:black;mso-fareast-language:FR-CH">Thank you for your cooperation.<br>
 </span></i><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:FR-CH">From:</span></b><span lang="EN-US" style="mso-fareast-language:FR-CH"> midPoint <midpoint-bounces@lists.evolveum.com>
<b>On Behalf Of </b>Gómez Martínez, Elsa<br>
<b>Sent:</b> mercredi, 15 avril 2020 14:36<br>
<b>To:</b> midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Subject:</b> Re: [midPoint] Self-Registration On external Page<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="ES" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES">Hi Loïc,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES">I don’t know if that is what you are looking for but in the API documentation you can “Create new object”, so I think that you
 can use your ASP.NET web application, take the data and use the API REST to register a new user.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES">Maybe something like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Georgia",serif;color:#004254;mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><code><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:white">curl --user user:password -H "Content-Type: application/xml"</span></code><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#333333;background:white"> </span><code><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:white">-X
 PUT <a href="http://yourmidPoint_Server:yourmidPoint_Port/midpoint/ws/rest/users">
http://yourmidPoint_Server:yourmidPoint_Port/midpoint/ws/rest/users</a> -d @fileUsersAttributes.xml</span></code><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm;background:white"><o:p></o:p></span></code></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:ES"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:ES">Elsa<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="ES" style="mso-fareast-language:ES">De:</span></b><span lang="ES" style="mso-fareast-language:ES"> midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>>
<b>En nombre de </b>Loïc Schamber<br>
<b>Enviado el:</b> miércoles, 15 de abril de 2020 9:01<br>
<b>Para:</b> midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br>
<b>Asunto:</b> [midPoint] Self-Registration On external Page<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
<p class="MsoNormal">Hi everyone.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I had to set up a registration page that is a bit complex, with fields that are displayed or hidden according to user selection.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">In order to do so I created an ASP.NET web application where I displayed a form with all the required field.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">As I didn’t found information about registration in the API documentation (</span><a href="https://wiki.evolveum.com/display/midPoint/REST+API"><span lang="EN-GB">https://wiki.evolveum.com/display/midPoint/REST+API</span></a><span lang="EN-GB">)
 I decided to use the create endpoint in order to create the user with the information of the form.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The user is created in midpoint and everything works great.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Now, I would like to trigger the userRegistrationNotifier in order to validate the user email address using a generated link. (Like in the self-registration configuration  <a href="https://wiki.evolveum.com/display/midPoint/Self+Registration+Configuration">https://wiki.evolveum.com/display/midPoint/Self+Registration+Configuration</a>)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Is there any way to trigger the userRegistrationNotifier manually or am I supposed to add this process to my custom web application.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I need the userRegistrationNotifier so I can use the midpoint.createRegistrationConfirmationLink(userType) method, but if there is another way to send the link by email I am open to suggestions!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks a lot for your time.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3" valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#E22D36;mso-fareast-language:FR-CH">Loïc Schamber</span></b><span lang="EN-GB" style="mso-fareast-language:FR-CH">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH"> | Junior IT Consultant<br>
 </span><span lang="EN-GB" style="mso-fareast-language:FR-CH"> <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="188" valign="top" style="width:141.0pt;border:none;border-right:solid #E22D36 1.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.serial.ch/"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="193" height="69" style="width:2.0104in;height:.7187in" id="_x0000_i1025" src="cid:image001.png@01D61335.55561E70" alt="logo"></span></a><span style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td width="10" style="width:7.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="mso-fareast-language:FR-CH"> <o:p></o:p></span></p>
</td>
<td width="497" valign="top" style="width:372.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36;mso-fareast-language:FR-CH"><a href="mailto:lschamber@serial.ch"><span style="color:#E22D36">lschamber@serial.ch</span></a>
 |  <a href="tel:+41%2022%20555%2027%2069"><span style="color:#919191">+41 22 555 27 69</span></a>
<br>
</span><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH">Chemin du Pré-Fleuri 5 – CH 1228 Plan-les-Ouates
<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="bottom" style="border:none;border-right:solid #E22D36 1.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.linkedin.com/company/redcactus-by-positivethinkingcompany" target="_blank"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="19" height="19" style="width:.1979in;height:.1979in" id="_x0000_i1026" src="cid:image002.png@01D61335.55561E70" alt="LinkedIn"></span></a><span style="mso-fareast-language:FR-CH"> 
</span><a href="https://www.instagram.com/positivethinkingcompany" target="_blank"><span style="color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img border="0" width="19" height="19" style="width:.1979in;height:.1979in" id="_x0000_i1027" src="cid:image003.png@01D61335.55561E70" alt="Instagram"></span></a><span style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td valign="bottom" style="padding:0cm 0cm 0cm 0cm"></td>
<td valign="bottom" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="mso-fareast-language:FR-CH"><a href="www.serial.ch"><b><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36">Redcactus by SERIAL
</span></b><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#E22D36">www.serial.ch</span></a></span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><span style="mso-fareast-language:FR-CH"><a href="www.positivethinking.co"><span lang="EN-GB" style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#919191">www.positivethinking.co</span></a></span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><span lang="EN-GB" style="font-size:3.5pt;font-family:"Tahoma",sans-serif;color:#919191;mso-fareast-language:FR-CH"> </span><span lang="EN-GB" style="mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:white;mso-fareast-language:FR-CH">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:8.0pt;font-family:Roboto;color:#E22D36;mso-fareast-language:FR-CH">Help save paper, do you really need to print this email?</span></b><span lang="EN-GB" style="mso-fareast-language:FR-CH"><br>
</span><i><span lang="EN-GB" style="font-size:8.0pt;font-family:Roboto;color:black;mso-fareast-language:FR-CH">The content of this email and any attachments are confidential and are intended solely for the person and/or company to whom they are addressed. The
 information may also be legally privileged. No employee or agent is authorized to conclude any binding agreement on behalf of SERIAL with another party by email without express written confirmation. If you have received this email in error, any use, reproduction
 or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by return E-mail and delete this message, its attachments and all copies from your system. Internet communications cannot
 be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
</span></i><i><span style="font-size:8.0pt;font-family:Roboto;color:black;mso-fareast-language:FR-CH">Thank you for your cooperation.<br>
 </span></i><o:p></o:p></p>
</div>
</body>
</html>