<div dir="ltr"><div>Hi Ivan,<br><br><br></div><div>Through the option Configuration->System, I figured out how to configure Role and Org templates.<br><br><br></div><div>Thks a lot,<br><br><br></div><div>Carlos<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-30 19:29 GMT-02:00 Carlos Ferreira <span dir="ltr"><<a href="mailto:carlos18619@gmail.com" target="_blank">carlos18619@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Ivan,<br><br></div>Indeed, it is not configured in System Configuration.<br><br></div>I have configured a template for user object, as follows:<br><br> <defaultUserTemplateRef xmlns:tns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3</a>"<br> oid="c0c010c0-d34d-b33f-f00d-<wbr>777222222222"<br> type="tns:ObjectTemplateType"><wbr><!-- Default User Template2 --></defaultUserTemplateRef><br><br></div>I tried (because I did not see any reference in the wiki), something like this for roles<br><br> <defaultRoleTemplateRef xmlns:tns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3</a>"<br> oid="c0c010c0-d34d-c33f-f00d-<wbr>777222222222"<br> type="tns:ObjectTemplateType"><wbr><!-- Default Role Template2 --></defaulRoleTemplateRef><br><br></div>but I've got an error.<br><br></div>Would you, please, show me the snippet necessary to accomplish that?<br><br></div><div>Tks,<br><br><br></div><div>Carlos<br></div><div> </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-10-30 17:54 GMT-02:00 Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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><div><div class="m_-5398538774476185424h5">
<br>
<div class="m_-5398538774476185424m_-1723785456731858636moz-cite-prefix">On 10/29/2016 03:44 PM, Carlos Ferreira
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="m_-5398538774476185424h5">
<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 href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveu<wbr>m.com/xml/ns/public/common/<wbr>common-3</a>"<br>
xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/query-3</a>"<br>
xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolv<wbr>eum.com/xml/ns/public/common/<wbr>common-3</a>"<br>
xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/types-3</a>"<br>
xmlns:icfs="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank">http://midpoint.ev<wbr>olveum.com/xml/ns/public/conne<wbr>ctor/icf-1/resource-schema-3</a>"<br>
xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.evol<wbr>veum.com/xml/ns/public/resourc<wbr>e/instance-3</a>"<br>
oid="10000000-0000-0000-0000-0<wbr>00000000241"<br>
version="0"><br>
<name>Role Template</name><br>
<metadata><br>
<createTimestamp>2016-10-29T09<wbr>:30:35.745-02:00</createTimest<wbr>amp><br>
<creatorRef
oid="00000000-0000-0000-0000-0<wbr>00000000002"
type="c:UserType"><!-- administrator
--></creatorRef><br>
<createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport" target="_blank">http://midpoint<wbr>.evolveum.com/xml/ns/public/<wbr>model/channels-3#objectImport</a><<wbr>/createChannel><br>
</metadata><br>
<item><br>
<c:ref>roleType</c:ref><br>
<valueEnumerationRef
oid="d5fa5e92-e450-11e4-b281-0<wbr>01e8c717e5b"/><br>
</item><br>
<mapping><br>
<name>Responsibility metarole
assignment</name><br>
<authoritative>true</authorita<wbr>tive><br>
<strength>strong</strength><br>
<source><br>
<c:path xmlns:ext="<a href="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext" target="_blank">http://midpoint.evo<wbr>lveum.com/xml/ns/story/orgsync<wbr>/ext</a>">extension/ext:responsibi<wbr>lity</c:path><br>
</source><br>
<expression><br>
<assignmentTargetSearch><br>
<targetType>c:RoleType</target<wbr>Type><br>
<oid>10000000-0000-0000-0000-0<wbr>00000006602</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 href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolveu<wbr>m.com/xml/ns/public/common/<wbr>common-3</a>"<br>
xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/query-3</a>"<br>
xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">http://midpoint.evolv<wbr>eum.com/xml/ns/public/common/<wbr>common-3</a>"<br>
xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.evolveum<wbr>.com/xml/ns/public/types-3</a>"<br>
xmlns:icfs="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank">http://midpoint.ev<wbr>olveum.com/xml/ns/public/conne<wbr>ctor/icf-1/resource-schema-3</a>"<br>
xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.evol<wbr>veum.com/xml/ns/public/resourc<wbr>e/instance-3</a>"<br>
oid="d5fa5e92-e450-11e4-b281-0<wbr>01e8c717e5b"<br>
version="0"><br>
<name>Role Types</name><br>
<metadata><br>
<createTimestamp>2016-10-29T09<wbr>:36:04.102-02:00</createTimest<wbr>amp><br>
<creatorRef
oid="00000000-0000-0000-0000-0<wbr>00000000002"
type="c:UserType"><!-- administrator
--></creatorRef><br>
<createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport" target="_blank">http://midpoint<wbr>.evolveum.com/xml/ns/public/<wbr>model/channels-3#objectImport</a><<wbr>/createChannel><br>
</metadata><br>
<row id="2"><br>
<key>application</key><br>
<label>Application</label><br>
<lastChangeTimestamp>2016-10-2<wbr>9T09:36:04.138-02:00</lastChan<wbr>geTimestamp><br>
</row><br>
<row id="4"><br>
<key>business</key><br>
<label>Business</label><br>
<lastChangeTimestamp>2016-10-2<wbr>9T09:36:04.138-02:00</lastChan<wbr>geTimestamp><br>
</row><br>
<row id="3"><br>
<key>it</key><br>
<label>IT</label><br>
<lastChangeTimestamp>2016-10-2<wbr>9T09:36:04.138-02:00</lastChan<wbr>geTimestamp><br>
</row><br>
<row id="1"><br>
<key>system</key><br>
<label>System</label><br>
<lastChangeTimestamp>2016-10-2<wbr>9T09:36:04.138-02:00</lastChan<wbr>geTimestamp><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="m_-5398538774476185424m_-1723785456731858636mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-5398538774476185424m_-1723785456731858636moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_-5398538774476185424m_-1723785456731858636moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><span class="m_-5398538774476185424HOEnZb"><font color="#888888">
</font></span></pre><span class="m_-5398538774476185424HOEnZb"><font color="#888888">
</font></span></blockquote><span class="m_-5398538774476185424HOEnZb"><font color="#888888">
<br>
<pre class="m_-5398538774476185424m_-1723785456731858636moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>