<div dir="ltr">Hi Ivan thanks for your answer,<div><br></div><div>Yes that's correct, they should be assigned without any parameters based on the org assignment types.</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: +54 (11) 4552-3050<br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Nov 18, 2016 at 12:34 PM, Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span> wrote:<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 Martin,</p>
<p>the STUDENT and TEACHER roles are "static" in means of assignment
parameters? They are (should be) just assigned without any
parameters whenever used has any org with STUDENT-type assignment
or any role with TEACHER-type assignment?</p>
<p><br>
</p>
Ivan<div><div class="h5"><br>
<br>
<div class="m_-3711948596778577785moz-cite-prefix">On 11/16/2016 08:37 PM, Martin Marchese
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>We had our AssignmentType extended with a "metaRelation"
extension property.</div>
<div><br>
</div>
<div>Users are assigned to an OrgType</div>
<div><br>
</div>
<div>Our OrgType represent schools and within this
"metaRelation" property, we store wether the assigned user is
a STUDENT or a TEACHER.</div>
<div><br>
</div>
<div>Besides, we have 2 Roles (STUDENT and TEACHER roles).</div>
<div><br>
</div>
<div>We would like to use our user template to assign the
corresponding role to the user based on shich "metaRelation"
it has within the Org.</div>
<div><br>
</div>
<div>Users could be STUDENT and/or TEACHER on more than one Org,
so while the user has at least one of this assignments, it
needs to have the corresponding role assigned.</div>
<div><br>
</div>
<div>We are thinking if there's a way to query the user Org
assignments within the template and use it as source for the
target role assignment.</div>
<div><br>
</div>
<div>Is this the best/correct way to do it? Do you recommend any
other way?</div>
<div><br>
</div>
<div>Thanks in Advance</div>
<div>Regards,</div>
<div><br clear="all">
<div>
<div class="m_-3711948596778577785gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><b><span></span><span></span>Ing.
Martín Marchese</b><br>
<img src="http://www.identicum.com/img/favicon.ico">Identicum
S.A.<br>
Jorge Newbery 3226<br>
Tel: +54 (11) 4552-3050<br>
<a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br>
<a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-3711948596778577785mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-3711948596778577785moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_-3711948596778577785moz-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_-3711948596778577785moz-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>