<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">That's right.<br>
<br>
Our conclusion is that this would be feasible. There is probably
very slight performance hit, but it is more than justified by the
benefits in manageability and flexibility. I like this idea.<br>
<br>
However, the part of midPoint roadmap that Evolveum is sponsoring
is currently full. Therefore the only practical way how to get
this feature in a near future is to sponsor it or develop it
yourself.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<br>
On 03/16/2016 05:37 PM, Ivan Noris wrote:<br>
</div>
<blockquote cite="mid:56E98BAF.3060509@evolveum.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
I have not found the issue in JIRA, but I remember we were
discussing it at the start of December 2015.<br>
Anyway I've created <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://jira.evolveum.com/browse/MID-2840">https://jira.evolveum.com/browse/MID-2840</a>
to track the feature.<br>
<br>
To increase the priority of the implementation, the usual options
are: <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://wiki.evolveum.com/display/midPoint/I+Need+New+Feature">https://wiki.evolveum.com/display/midPoint/I+Need+New+Feature</a>
<div class="moz-cite-prefix"><br>
Best regards,<br>
Ivan<br>
<br>
On 03/16/2016 04:19 PM, Дорофеев Илья wrote:<br>
</div>
<blockquote
cite="mid:F82253638486D44DABA51EC404D48AF3293EA242@EX-MB1.solar.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">Hi Ivan,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US">What if I have plenty of employee types (say,
100) in my trusted identity source? Do I have to create a
hundred of mappings in object template in order to assign
a corresponding role for each employeeType? I anticipate
the performance of clockwork will suffer in such a case.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Segoe
UI",sans-serif;color:#1F497D">__________________________<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Segoe
UI",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Segoe
UI",sans-serif;color:#1F497D" lang="EN-US">Ilya
Dorofeev<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
midPoint [<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="mailto:midpoint-bounces@lists.evolveum.com">mailto:midpoint-bounces@lists.evolveum.com</a>]
<b>On Behalf Of </b>Ivan Noris<br>
<b>Sent:</b> Saturday, March 12, 2016 8:31 PM<br>
<b>To:</b> midPoint General Discussion <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:midpoint@lists.evolveum.com"><a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a></a><br>
<b>Subject:</b> Re: [midPoint] Dynamic Role Assignment<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Hi Gauri,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">this is
easily possible using Object Templates.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Please
refer to one or our samples for example:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/Evolveum/midpoint/blob/master/samples/objects/user-template-complex.xml"><a class="moz-txt-link-freetext" href="https://github.com/Evolveum/midpoint/blob/master/samples/objects/user-template-complex.xml">https://github.com/Evolveum/midpoint/blob/master/samples/objects/user-template-complex.xml</a></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="color:black"> <!-- RB-RBAC functionality.
The Pirate role is automatically assigned based on the
value of employeeType property </span><span
style="color:black" lang="EN-US">--><br>
<mapping><br>
<source><br>
<path>employeeType</path><br>
</source><br>
<expression><br>
<value><br>
<assignment><br>
<targetRef
oid="12345678-d34d-b33f-f00d-987987987988"
type="RoleType"/><br>
</assignment><br>
</value> <br>
</expression><br>
<target><br>
<path>assignment</path><br>
</target><br>
<condition><br>
<script><br>
<language></span><span
style="color:black"><a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy%3C/language"><span
lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</language</span></a></span><span
style="color:black" lang="EN-US">><br>
<code>employeeType ==
'PIRATE'</code><br>
</script><br>
</condition><br>
</mapping><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Ivan<o:p></o:p></span></p>
</div>
<div class="MsoNormal" style="text-align:center"
align="center"><span style="color:black">
<hr id="zwchr" align="center" size="2" width="100%"> </span></div>
<blockquote style="border:none;border-left:solid #1010FF
1.5pt;padding:0cm 0cm 0cm
4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><b><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US">From: </span></b><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US">"GAURI SHIRSATH" <</span><span
style="font-family:"Helvetica",sans-serif;color:black"><a
moz-do-not-send="true"
href="mailto:gauri15.shirsath@gmail.com"><span
lang="EN-US"></span></a><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:gauri15.shirsath@gmail.com">gauri15.shirsath@gmail.com</a></span><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US">><br>
<b>To: </b></span><span
style="font-family:"Helvetica",sans-serif;color:black"><a
moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com"><span
lang="EN-US"></span></a><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a></span><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US"><br>
<b>Sent: </b>Saturday, March 12, 2016 8:14:01 AM<br>
<b>Subject: </b>[midPoint] Dynamic Role Assignment<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Hi,</span><span
style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Can
you please guide me for how to assign a role to
user dynamically based on some attribute value?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Like,
if my data is coming in to midpoint from CSV file
and I want to assign a user role based on some
attribute value.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Thank
you,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:black">Gauri<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span
style="font-family:"Helvetica",sans-serif;color:black"><br>
</span><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US">_______________________________________________<br>
midPoint mailing list<br>
</span><span
style="font-family:"Helvetica",sans-serif;color:black"><a
moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com"><span
lang="EN-US"></span></a><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a></span><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US"><br>
</span><span
style="font-family:"Helvetica",sans-serif;color:black"><a
moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"><span
lang="EN-US"></span></a><a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a></span><span
style="font-family:"Helvetica",sans-serif;color:black"
lang="EN-US"><o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="color:black" lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"
lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"> Ing. Ivan
Noris<br>
Senior Identity Management Engineer & IDM
Architect<br>
evolveum.com evolveum.com/blog/<br>
___________________________________________________<br>
"Semper ID(e)M Vix."<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" 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">--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect
evolveum.com evolveum.com/blog/
___________________________________________________
"Semper ID(e)M Vix."
</pre>
<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>
<br>
</body>
</html>