<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">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br> oid="c0c010c0-d34d-b33f-f00d-777222222222"<br> type="tns:ObjectTemplateType"><!-- 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">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br> oid="c0c010c0-d34d-c33f-f00d-777222222222"<br> type="tns:ObjectTemplateType"><!-- 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="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="h5">
<br>
<div class="m_-1723785456731858636moz-cite-prefix">On 10/29/2016 03:44 PM, Carlos Ferreira
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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.<wbr>evolveum.com/xml/ns/public/<wbr>common/common-3</a>"<br>
xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>query-3</a>"<br>
xmlns:c="<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>
xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>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.<wbr>evolveum.com/xml/ns/public/<wbr>connector/icf-1/resource-<wbr>schema-3</a>"<br>
xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>resource/instance-3</a>"<br>
oid="10000000-0000-0000-0000-<wbr>000000000241"<br>
version="0"><br>
<name>Role Template</name><br>
<metadata><br>
<createTimestamp>2016-10-<wbr>29T09:30:35.745-02:00</<wbr>createTimestamp><br>
<creatorRef
oid="00000000-0000-0000-0000-<wbr>000000000002"
type="c:UserType"><!-- administrator
--></creatorRef><br>
<createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport" target="_blank">http://<wbr>midpoint.evolveum.com/xml/ns/<wbr>public/model/channels-3#<wbr>objectImport</a></createChannel><br>
</metadata><br>
<item><br>
<c:ref>roleType</c:ref><br>
<valueEnumerationRef
oid="d5fa5e92-e450-11e4-b281-<wbr>001e8c717e5b"/><br>
</item><br>
<mapping><br>
<name>Responsibility metarole
assignment</name><br>
<authoritative>true</<wbr>authoritative><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.<wbr>evolveum.com/xml/ns/story/<wbr>orgsync/ext</a>">extension/ext:<wbr>responsibility</c:path><br>
</source><br>
<expression><br>
<assignmentTargetSearch><br>
<targetType>c:RoleType</<wbr>targetType><br>
<oid>10000000-0000-0000-0000-<wbr>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 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>
xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>query-3</a>"<br>
xmlns:c="<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>
xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank">http://prism.<wbr>evolveum.com/xml/ns/public/<wbr>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.<wbr>evolveum.com/xml/ns/public/<wbr>connector/icf-1/resource-<wbr>schema-3</a>"<br>
xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>resource/instance-3</a>"<br>
oid="d5fa5e92-e450-11e4-b281-<wbr>001e8c717e5b"<br>
version="0"><br>
<name>Role Types</name><br>
<metadata><br>
<createTimestamp>2016-10-<wbr>29T09:36:04.102-02:00</<wbr>createTimestamp><br>
<creatorRef
oid="00000000-0000-0000-0000-<wbr>000000000002"
type="c:UserType"><!-- administrator
--></creatorRef><br>
<createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport" target="_blank">http://<wbr>midpoint.evolveum.com/xml/ns/<wbr>public/model/channels-3#<wbr>objectImport</a></createChannel><br>
</metadata><br>
<row id="2"><br>
<key>application</key><br>
<label>Application</label><br>
<lastChangeTimestamp>2016-10-<wbr>29T09:36:04.138-02:00</<wbr>lastChangeTimestamp><br>
</row><br>
<row id="4"><br>
<key>business</key><br>
<label>Business</label><br>
<lastChangeTimestamp>2016-10-<wbr>29T09:36:04.138-02:00</<wbr>lastChangeTimestamp><br>
</row><br>
<row id="3"><br>
<key>it</key><br>
<label>IT</label><br>
<lastChangeTimestamp>2016-10-<wbr>29T09:36:04.138-02:00</<wbr>lastChangeTimestamp><br>
</row><br>
<row id="1"><br>
<key>system</key><br>
<label>System</label><br>
<lastChangeTimestamp>2016-10-<wbr>29T09:36:04.138-02:00</<wbr>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="m_-1723785456731858636mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-1723785456731858636moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_-1723785456731858636moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_-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">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></div>