<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>if I understand correctly, you would like to import the
      information about user's manager from AD.</p>
    <p>You are right there is no attribute for this in midPoint. This is
      by design as the organization structure defines, who is the
      manager.</p>
    <p>Example:</p>
    <p>User "employee1" in midPoint is in organization Top -> Sales
      Division -> Sales Team 1</p>
    <p>In organization Sales Team 1 there is another user "manager1"
      assigned to Sales Team 1 as manager (this is a relation of the
      assignment).</p>
    <p>That makes user "manager1" manager of "employee1". It can be used
      for:</p>
    <p>- displaying in the org. structure</p>
    <p>- delegated administration: the manager can do something with
      his/her subordinate employees</p>
    <p>- approvals: the manager can approve requests of his/her
      subordinate employees</p>
    <p>There is no default attribute in UserType that would contain the
      information "who is my manager". It is always computed by midPoint
      and you can use methods in midpoint scripting library, e.g.</p>
    <p><a class="moz-txt-link-freetext" href="https://www.evolveum.com/downloads/midpoint/4.1/midpoint-api-4.1-javadoc/com/evolveum/midpoint/model/api/expr/MidpointFunctions.html#getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)">https://www.evolveum.com/downloads/midpoint/4.1/midpoint-api-4.1-javadoc/com/evolveum/midpoint/model/api/expr/MidpointFunctions.html#getManagersOidsExceptUser(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)</a></p>
    <p>If you don't want to use it, you can define an extension
      attribute and populate the manager from AD there. But then you
      would lose the default functionality for deriving the managers
      from organizational structure as described above.</p>
    <p>Best regards,</p>
    <p>Ivan<br>
    </p>
    <div class="moz-cite-prefix">On 6. 5. 2020 11:14, Щенев Антон
      Вячеславович wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:651689E53CC19841968296084942E1E81EB424CC@ekt-asbt-mxs001.beeper.ru">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Текст выноски Знак";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.a
        {mso-style-name:"Текст выноски Знак";
        mso-style-priority:99;
        mso-style-link:"Текст выноски";
        font-family:"Tahoma","sans-serif";}
span.tlid-translation
        {mso-style-name:tlid-translation;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
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"><span lang="EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span class="tlid-translation"><span
              lang="EN">The user in the AD has a field its
              leader(manager). In midPoint, such a field was not found
              in Users. Of course, you can use any of the unoccupied,
              but as provided by the system?</span></span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:RU"><img
              id="Рисунок_x0020_6"
              src="cid:part1.08753F39.AFB91FA1@evolveum.com"
              alt="Описание: Описание: Описание:
              cid:image004.png@01D47D0D.3B8B0380" class="" width="247"
              height="4"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:RU"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:6.0pt;color:#1F497D;mso-fareast-language:RU"> </span><span
            style="color:#1F497D;mso-fareast-language:RU"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:RU">С уважением,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:#1F497D;mso-fareast-language:RU">Щенев Антон
            Вячеславович<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></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
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>