<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Florian,</p>
    <p>you can do this without any source code modification using object
      template.</p>
    <p>Please create object template object similar to this:</p>
    <p><objectTemplate
      xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
      xmlns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
      xmlns:t=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a><br>
      xmlns:q=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a><br>
xmlns:org=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/org-3">"http://midpoint.evolveum.com/xml/ns/public/common/org-3"</a><br>
      oid="f1037036-b1d7-11ed-ac9a-377757307596"><br>
          <name>ExAmPLE User Template</name><br>
          <item><br>
              <ref>telephoneNumber</ref><br>
              <displayName>This is my telephone
      number</displayName><br>
              <emphasized>true</emphasized><br>
    </p>
    <p>        <help>Mobile Telephone Number</help><br>
          </item></p>
    <p>...</p>
    <p></objectTemplate></p>
    <p>This object template overrides the default telephoneNumber
      attribute to be displayed as "This is my telephone number", with
      tooltip "Mobile telephone number". Emphasized means the attribute
      will be displayed even when empty.</p>
    <p>To use the object template, you need to reference it in
      midPoint's System configuration.</p>
    <p>From GUI: go to System > Policies, and add a Object Policy for
      UserType refering to your template.</p>
    <p>From XML - when using Studio: this is the System configuration
      fragment needed:</p>
    <div
      style="background-color:#ffffff;color:#080808;font-family:'JetBrains
      Mono',monospace;font-size:9.0pt;">
      <pre><<span style="color:#0033b3;">defaultObjectPolicyConfiguration</span>>
    <<span style="color:#0033b3;">objectTemplateRef </span><span style="color:#174ad4;">type</span><span style="color:#067d17;">="ObjectTemplateType" </span><span style="color:#174ad4;">oid</span><span style="color:#067d17;">="</span><span style="color:#067d17;">f1037036-b1d7-11ed-ac9a-377757307596"</span>/>
    <<span style="color:#0033b3;">type</span>>UserType</<span style="color:#0033b3;">type</span>>
</pre>
      <div
        style="background-color:#ffffff;color:#080808;font-family:'JetBrains
        Mono',monospace;font-size:9.0pt;">
        <pre></<span style="color:#0033b3;">defaultObjectPolicyConfiguration</span>>
</pre>
      </div>
    </div>
    <p></p>
    <div class="moz-cite-prefix">No restart is required.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">For other attributes than
      telephoneNumber, you can see their names defined in common schema.
      For midpoint 4.6 it's here:
<a class="moz-txt-link-freetext" href="https://www.evolveum.com/downloads/midpoint/4.6/midpoint-4.6-schemadoc/http---midpoint-evolveum-com-xml-ns-public-common-common-3/object/UserType.html">https://www.evolveum.com/downloads/midpoint/4.6/midpoint-4.6-schemadoc/http---midpoint-evolveum-com-xml-ns-public-common-common-3/object/UserType.html</a></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">(Attribute givenName represents the
      user's given name.)<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Best regards,</div>
    <div class="moz-cite-prefix">Ivan</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 21. 2. 2023 10:46, Florian Dürr via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:GV0P278MB067160CB6CCEC8B038ACD6EBFAA59@GV0P278MB0671.CHEP278.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}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]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi @all<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">My Goal is to adapt the
            labels of the properties of the default user-edit form, i.e.
            instead of “Given name” I like it to say “First name”.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I am quite new to
            midPoint and (unsuccessfully) searched the documentation for
            3 hours before posting this.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I am using
            midPoint-Studio and search for a way to do it with editing
            XMLs; preferably not a way which involves recompilation.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thanks a lot for
            pointing me into the right direction,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Best,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Florian<o:p></o:p></span></p>
      </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>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Expert Identity Engineer
evolveum.com
</pre>
  </body>
</html>