<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Carlos,</p>
    <p>quick question before I can get to anything else: is your role
      object template configured in System configuration object? I.e. is
      it used at all?</p>
    <p>I'm using lookup tables for similar purposes for both Orgs and
      Users, but not for Roles; but I believe they all should work the
      same.</p>
    <p>Ivan<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 10/29/2016 03:44 PM, Carlos Ferreira
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJHEg64oCBBS3AYZ2qkW9xxt5W=vty9GXyDjF9EzqVo_RktB8A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi,<br>
            <br>
          </div>
          <div>I have a "Role Template" (taken from Midpoint Wiki), as
            follows:<br>
          </div>
          <div><br>
            <objectTemplate xmlns="<a moz-do-not-send="true"
              href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br>
                            xmlns:q="<a moz-do-not-send="true"
              href="http://prism.evolveum.com/xml/ns/public/query-3">http://prism.evolveum.com/xml/ns/public/query-3</a>"<br>
                            xmlns:c="<a moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>"<br>
                            xmlns:icfs="<a moz-do-not-send="true"
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>"<br>
                            xmlns:ri="<a moz-do-not-send="true"
              href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"<br>
                            oid="10000000-0000-0000-0000-000000000241"<br>
                            version="0"><br>
               <name>Role Template</name><br>
               <metadata><br>
                 
<createTimestamp>2016-10-29T09:30:35.745-02:00</createTimestamp><br>
                  <creatorRef
            oid="00000000-0000-0000-0000-000000000002"
            type="c:UserType"><!-- administrator
            --></creatorRef><br>
                  <createChannel><a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport">http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport</a></createChannel><br>
               </metadata><br>
               <item><br>
                  <c:ref>roleType</c:ref><br>
                  <valueEnumerationRef
            oid="d5fa5e92-e450-11e4-b281-001e8c717e5b"/><br>
               </item><br>
               <mapping><br>
                  <name>Responsibility metarole
            assignment</name><br>
                  <authoritative>true</authoritative><br>
                  <strength>strong</strength><br>
                  <source><br>
                     <c:path xmlns:ext="<a moz-do-not-send="true"
              href="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext">http://midpoint.evolveum.com/xml/ns/story/orgsync/ext</a>">extension/ext:responsibility</c:path><br>
                  </source><br>
                  <expression><br>
                     <assignmentTargetSearch><br>
                        <targetType>c:RoleType</targetType><br>
                       
            <oid>10000000-0000-0000-0000-000000006602</oid><br>
                     </assignmentTargetSearch><br>
                  </expression><br>
                  <target><br>
                     <c:path>assignment</c:path><br>
                  </target><br>
                  <condition><br>
                     <script><br>
                        <code>responsibility as
            Boolean</code><br>
                     </script><br>
                  </condition><br>
               </mapping><br>
            </objectTemplate><br>
            <br>
            <br>
          </div>
          <div>2. I have a lookup table to list the possibilities for
            the "role type" attribute:<br>
          </div>
          <div><br>
            <br>
            <lookupTable xmlns="<a moz-do-not-send="true"
              href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br>
                         xmlns:q="<a moz-do-not-send="true"
              href="http://prism.evolveum.com/xml/ns/public/query-3">http://prism.evolveum.com/xml/ns/public/query-3</a>"<br>
                         xmlns:c="<a moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>"<br>
                         xmlns:icfs="<a moz-do-not-send="true"
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>"<br>
                         xmlns:ri="<a moz-do-not-send="true"
              href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"<br>
                         oid="d5fa5e92-e450-11e4-b281-001e8c717e5b"<br>
                         version="0"><br>
               <name>Role Types</name><br>
               <metadata><br>
                 
<createTimestamp>2016-10-29T09:36:04.102-02:00</createTimestamp><br>
                  <creatorRef
            oid="00000000-0000-0000-0000-000000000002"
            type="c:UserType"><!-- administrator
            --></creatorRef><br>
                  <createChannel><a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport">http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport</a></createChannel><br>
               </metadata><br>
               <row id="2"><br>
                  <key>application</key><br>
                  <label>Application</label><br>
                 
<lastChangeTimestamp>2016-10-29T09:36:04.138-02:00</lastChangeTimestamp><br>
               </row><br>
               <row id="4"><br>
                  <key>business</key><br>
                  <label>Business</label><br>
                 
<lastChangeTimestamp>2016-10-29T09:36:04.138-02:00</lastChangeTimestamp><br>
               </row><br>
               <row id="3"><br>
                  <key>it</key><br>
                  <label>IT</label><br>
                 
<lastChangeTimestamp>2016-10-29T09:36:04.138-02:00</lastChangeTimestamp><br>
               </row><br>
               <row id="1"><br>
                  <key>system</key><br>
                  <label>System</label><br>
                 
<lastChangeTimestamp>2016-10-29T09:36:04.138-02:00</lastChangeTimestamp><br>
               </row><br>
            </lookupTable><br>
            <br>
            <br>
          </div>
          <div>3. However, when I try do add a new role, I cannot see
            the lookup table options while filling the "role type"
            attribute. What is missing?<br>
            <br>
            <br>
          </div>
          <div>Carlos Antonio Ferreira<br>
          </div>
          Tribunal Regional do Trabalho da 3ª Região<br>
        </div>
        MG Brasil<br>
      </div>
      <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">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>