<div style="font-family: Arial, sans-serif; font-size: 14px;">Sorry, that was easy:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Just in objectTemplate define the mapping like this:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span> <mapping id="25"></span><div><span> <name>credentials</name></span></div><div><span> <expression></span></div><div><span> <generate></span></div><div><span> <valuePolicyRef oid="00000000-0000-0000-0000-000000000003" type="c:ValuePolicyType" xsi:type="c:ObjectReferenceType"/></span></div><div><span> </generate></span></div><div><span> </expression></span></div><div><span> <target></span></div><div><span> <path>c:credentials/password/value</path></span></div><div><span> </target></span></div><span> </mapping></span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">WBR,</div><div class="protonmail_signature_block-proton">Mike</div></div><div class="protonmail_quote">
On Friday, 14 March 2025 at 11:26 AM, mikhail.nikolaenko via midPoint <midpoint@lists.evolveum.com> wrote:<br>
<blockquote class="protonmail_quote" type="cite">
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"></div><div><span dir="auto">Hello! <br></span></div><div><span dir="auto">Still learning midPoint to present a POC. Now I want to generate initial password for new employee based on pwd policy and also send it via email (means I need to have it stored on person object and be able to read it). I have checked docs and examples, but still could not understand how I can do this. May be someone can point me to the doc or give me a hint?</span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">With best regards,</div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Mike</div><div style="font-family: Arial, sans-serif; font-size: 14px;" class="protonmail_signature_block"><div class="protonmail_signature_block-proton">
</div>
</div>
</blockquote><br>
</div>