<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Aivo,<br>
    <br>
    please try to update the <attribute> with this:<br>
                                <attribute><br>
                                           
    <ref>icfs:name</ref><br>
                                           
    <displayName>Distinguished Name</displayName><br>
       <b>                                     <limitations></b><b><br>
    </b><b>                                               
      <minOccurs>0</minOccurs></b><b><br>
    </b><b>                                       
      </limitations>                                  </b><br>
    ...<br>
    <br>
    This will "fix" the problem when GUI requires the value being
    present even if it's computed in the mappings.<br>
    See the samples for AD (samples/resources/ad/) if using the ADSI
    based AD connector.<br>
    You may need the same for other attributes such as "sn",
    sAMAccountName, etc.<br>
    <br>
    Regards,<br>
    Ivan<br>
    <br>
    <div class="moz-cite-prefix">On 04/13/2016 09:37 AM, Aivo Kuhlberg
      wrote:<br>
    </div>
    <blockquote cite="mid:1460533004892.27358@rmit.ee" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
      <p>How can I create AD user account automatically when I assign
        resource account to user in midPoint 3.3.1? Currently when I add
        resource assignment to user and click 'Save' button it
        complains: "'ConnId Name' is required". When I fill in the
        'ConnId Name' attribute then the user account is created in AD.
        Why it does not use outbound mapping in schema handling?<br>
        icfs:name mapping is currently following:<br>
        ...<br>
                    <attribute><br>
                        <c:ref
xmlns:icfs=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a>>icfs:name</c:ref><br>
                        <tolerant>true</tolerant><br>
                       
        <exclusiveStrong>false</exclusiveStrong><br>
                        <outbound><br>
                            <source><br>
                               
        <c:path>$user/givenName</c:path><br>
                            </source><br>
                            <source><br>
                               
        <c:path>$user/familyName</c:path><br>
                            </source><br>
                            <expression><br>
                                <script><br>
                                    <code><br>
                                        return 'CN=' + givenName + ' ' +
        familyName + ',OU=Users,OU=TEST2,DC=proov,DC=domain'<br>
                                    </code><br>
                                </script><br>
                            </expression><br>
                            <condition><br>
                                <script><br>
                                    <code>givenName != null
        &amp;&amp; familyName != null</code><br>
                                </script><br>
                            </condition><br>
                        </outbound><br>
                    </attribute><br>
        ...<br>
        Thanks,<br>
        Aivo Kuhlberg<br>
      </p>
      <br>
      <hr>
      <font face="Arial" color="Gray" size="2">Käesolev e-kiri võib
        sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
        This e-mail may contain information which is classified for
        official use.</font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer & IDM Architect
  evolveum.com                     evolveum.com/blog/
  ___________________________________________________
  "Semper ID(e)M Vix."
</pre>
  </body>
</html>