<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thank you Pavol and Ethan<br><div><div>I ignored the message and tried to create a group using Midpoint. When creating the role, in the customizable field I informed the value 2 for creating a distribution group in AD.</div><div>But I got the error:</div><div><br></div><div>Expected in type, but got class java.math.BigInter in outbound mapping for {... / resource / instance-3} grouType in resource: xxxxxxxxx (Active Directory)</div></div><div><br></div><div>I'm checking to see if value is being passed as an integer from midpoint to Active Directory<br></div><div><br></div><div><div>Note: I can change the value of the Active Directory groupType field using Midpoint:</div><div><br></div><div>Resources -> Active Directory -> Entitlements ---> Some Object -></div><div>groupType from: -2147483646 to: 2</div><div><br></div><div>This changes the object in Active Directory from security group to distribution group.</div></div><div><br></div><div>Regards</div><div>Gus</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 13 de out. de 2020 às 10:11, Pavol Mederly via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hello Gus,</p>
    <p>these messages originate from Validator component of the Resource
      Wizard. It is an experimental piece of code that I once (many
      years ago) made as an attempt to improve the usability of the
      wizard. And it was not much updated since then, so it can
      sometimes produce imprecise or even incorrect warning/error
      messages. My fault is that it is not marked as experimental; as
      far as I know.<br>
    </p>
    <p>I think you can safely ignore these errors, if they do not make
      sense to you. (As is probably the case here.)<br>
    </p>
    <p>Overall, I am not sure about the current status of the Resource
      Wizard and future plans for its development. Radovan or Katka
      would know better.</p>
    <p>Best regards,<br>
    </p>
    <pre cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
    <div>On 13/10/2020 14:44, Gus Lou via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">Hi Pavol</div>
            <div dir="ltr"><br>
              <div>Thank you for your help</div>
              <div><br>
              </div>
              <div>
                <div>I made the change, but now the MP displays the
                  message:</div>
                <div>Invalid source for outbound mapping for "ri: group"
                  in schema handling for "AD Group (kind: ENTITLEMENT,
                  intent: group)": No definition for 'extension /
                  grouptype' in user</div>
              </div>
              <div><br>
              </div>
              <div>
                <div>I have other custom fields mapped to AD fields and
                  I used</div>
                <div>$user/extension/field name</div>
              </div>
              <div><br>
              </div>
              <div>They worked, only the grouptype custom field mapping
                is having a problem<br>
              </div>
              <div><br>
              </div>
              <div>Regards </div>
              <div>Gus</div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Em sáb., 10 de out. de 2020 às
          05:45, Pavol Mederly via midPoint <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>>
          escreveu:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hello Gus,</p>
            <p>please replace $user with $focus. That should help.</p>
            <p>Best regards,<br>
            </p>
            <pre cols="72">Pavol Mederly
Software developer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
            <div>On 10/10/2020 02:24, Gus Lou via midPoint wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div dir="ltr">Hi Guys
                                      <div><br>
                                      </div>
                                      <div>
                                        <div>I'm trying to create a
                                          distribution group in Active
                                          Directory through midpoint.</div>
                                        <div>I'm following the idea of
                                          this thread:</div>
                                        <div><a href="https://lists.evolveum.com/pipermail/midpoint/2014-December/000672.html" target="_blank">https://lists.evolveum.com/pipermail/midpoint/2014-December/000672.html</a></div>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>
                                        <div>To achieve this goal I did
                                          the following:</div>
                                        <div><b>1-I created a custom
                                            field named grouptype:</b></div>
                                      </div>
                                      <div>
                                        <div style="color:rgb(0,0,0);background-color:rgb(255,255,254);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:complexType</span> <span style="color:rgb(255,0,0)">name</span>=<span style="color:rgb(0,0,255)">"RoleTypeExtensionType"></span></div><div>       <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div>           <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div>               <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:extension</span> <span style="color:rgb(255,0,0)">ref</span>=<span style="color:rgb(0,0,255)">"c:RoleType"</span><span style="color:rgb(128,0,0)">/</span><span style="color:rgb(0,0,255)">></span></div><div>           <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div>       <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div>       <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:sequence</span><span style="color:rgb(0,0,255)">></span></div><div>           <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:element</span> <span style="color:rgb(255,0,0)">name</span>=<span style="color:rgb(0,0,255)">"grouptype"</span> <span style="color:rgb(255,0,0)">type</span>=<span style="color:rgb(0,0,255)">"xsd:integer"</span> <span style="color:rgb(255,0,0)">minOccurs</span>=<span style="color:rgb(0,0,255)">"0"</span> <span style="color:rgb(255,0,0)">maxOccurs</span>=<span style="color:rgb(0,0,255)">"1"></span></div><div>               <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div>                   <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div>                       <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:indexed</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">a:indexed</span><span style="color:rgb(0,0,255)">></span></div><div>                       <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:displayName</span><span style="color:rgb(0,0,255)">></span>Group Type<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">a:displayName</span><span style="color:rgb(0,0,255)">></span>                    </div><div>                   <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div>               <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div>           <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:element</span><span style="color:rgb(0,0,255)">></span></div><div>       <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:sequence</span><span style="color:rgb(0,0,255)">></span></div><div>   <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:complexType</span><span style="color:rgb(0,0,255)">></span></div><div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:schema</span><span style="color:rgb(0,0,255)">></span></div></div>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><b>I created the outbound
                                          mapping to receive the value
                                          of the grouptype field</b><br>
                                      </div>
                                      <div>
                                        <div style="color:rgb(0,0,0);background-color:rgb(255,255,254);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">attribute</span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"99"></span></div><div>   <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">c:ref</span> <span style="color:rgb(255,0,0)">xmlns:ri</span>=<span style="color:rgb(0,0,255)">"<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"></span>ri:groupType<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">c:ref</span><span style="color:rgb(0,0,255)">></span>   </div><div>   <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span></div><div>   <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">outbound</span><span style="color:rgb(0,0,255)">></span></div><div>     <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">authoritative</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">authoritative</span><span style="color:rgb(0,0,255)">></span></div><div>     <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">exclusive</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">exclusive</span><span style="color:rgb(0,0,255)">></span></div><div>     <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">strength</span><span style="color:rgb(0,0,255)">></span>normal<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">strength</span><span style="color:rgb(0,0,255)">></span></div><div>     <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">source</span><span style="color:rgb(0,0,255)">></span></div><div>       <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">c:path</span><span style="color:rgb(0,0,255)">></span>$user/extension/grouptype<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">c:path</span><span style="color:rgb(0,0,255)">></span></div><div>     <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">source</span><span style="color:rgb(0,0,255)">></span></div><div>   <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">outbound</span><span style="color:rgb(0,0,255)">></span></div><div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">attribute</span><span style="color:rgb(0,0,255)">></span></div></div>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>But when I try to save the
                                        mapping, I get the following
                                        message:</div>
                                      <div>Invalid source for outbound
                                        mapping for "ri:groupType" in
                                        schema handling for "AD Group
                                        (Kind:
                                        ENTITLEMENT,intent:group)":No
                                        definition for
                                        'extension/grouptype" in user<br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>Does anyone know what could
                                        be wrong? I'm in the right way?<br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>Best regards</div>
                                      <div><br>
                                      </div>
                                      <div>Gus</div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
            </blockquote>
          </div>
          _______________________________________________<br>
          midPoint mailing list<br>
          <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
          <a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>