<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Oh yes, there is a very nice way: just use assignments.<br>
<br>
Users can have assignments for Orgs. They can have any number of
assignments to any number of Orgs. A user can even have several
assignments to the same org as long as there are different
parameters (orgRef, tenantRef or any extension property).
Assignments can have extension properties that define the type of
the assignment if you need that (e.g. to differentiate teacher and
student). Or you can use the "relation" feature in targetRef. We use
that feature to distinguish organization managers from members, but
it should be generic enough to also support other types (teacher,
student). Assignments also have validity ("from" and "to" dates), so
they are ideal to model relations with a fixed end date such as
student affiliations to school that automatically end at the end of
semester.<br>
<br>
Assignments are designed from the day 1 to handle exactly the use
case that you are describing.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<div class="moz-cite-prefix">On 07/12/2016 03:53 PM, Martin Marchese
wrote:<br>
</div>
<blockquote
cite="mid:CAG3rmdpwFPVKhH4i14ZSBTaLB98SiJRDWeco+xzA6zjA5LJv_g@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>We are facing a need in our MidPoint implementation. It's
the case of an educational system (made up of many schools).</div>
<div><br>
</div>
<div>We have ths schools modeled as orgTypes. </div>
<div><br>
</div>
<div>Users can be part of one or more orgTypes, and they can
have 1 or more positions in each school, for example:<br>
<br>
user1 can be a teacher and principal in school A and teacher
in school B</div>
<div><br>
</div>
<div>Is there a way to represent these kind of relationships
between orgTypes and userTypes?</div>
<div><br>
</div>
<div>We are looking for something like this (if it's possible):</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://www.internet2.edu/products-services/trust-identity/eduperson-eduorg/">http://www.internet2.edu/products-services/trust-identity/eduperson-eduorg/</a><br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><span></span><span></span>Ing.
Martín Marchese</b><br>
<img moz-do-not-send="true"
src="http://www.identicum.com/img/favicon.ico">Identicum
S.A.<br>
Anchorena 1357 PB<br>
Tel: +54 (11) 3526.5509<br>
<a moz-do-not-send="true"
href="mailto:mmarchese@identicum.com"
target="_blank">mmarchese@identicum.com</a><br>
<a moz-do-not-send="true"
href="http://www.identicum.com" target="_blank">www.identicum.com</a></div>
</div>
</div>
</div>
</div>
</div>
</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>
</body>
</html>