<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks for your response, Esteban!
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Unfortunately, even after changing the approver type to a user and specifying a user’s OID, as you suggested, no workflow is started and the incompatible role is still assigned immediately (however, it is important
that the approvers eventually be the members of an organization, and not a single user). The problem is that MidPoint seems to be ignoring reference to the approval altogether, as when I specify “enforcement,” it does indeed block the assignment of incompatible
roles. Maybe I am missing something further here?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Alex<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><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>From:</b> midPoint [mailto:midpoint-bounces@lists.evolveum.com]
<b>On Behalf Of </b>Jeria, Esteban<br>
<b>Sent:</b> jueves, 31 de agosto de 2017 3:36 p. m.<br>
<b>To:</b> midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Subject:</b> Re: [midPoint] Approval processes in Segregation of Duties<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black">Hola Alex,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"> <o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black">I was working on exactly the same feature on last days, so I tested your code and I found an error on approverRef, the type should be an user<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"> <o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><approverRef oid="(APPROVER OID)"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> relation="org:default"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> type="c:UserType"></approverRef><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"> <o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black">otherwise your request goes to nobody. Actually you can probably found them under "Work items / All requests"<o:p></o:p></span></p>
<div>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black">Once fixed, the approval workflow works properly.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"> <o:p></o:p></span></p>
<div>
<p><b><span lang="FR" style="font-size:10.5pt;font-family:"Calibri Light",sans-serif;color:blue;background:white">Esteban Jeria</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:#575A5D;background:white"><br>
</span><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:black;background:white">Conseiller
</span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:red;background:white">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:black;background:white"> / </span><b><span style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:red;background:white">CGI</span></b><span style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:black;background:white">
Consultant</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Calibri Light",sans-serif;color:black;background:white">Sécurité - Gestion d'identité et des accès / Security - Identity and Access Management</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black">
<hr size="2" width="100%" align="center">
</span></div>
<div id="divRpF439293">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"> Doler, Alexander Earl (LATCO - Buenos
Aires) [adoler@deloitte.com]<br>
<b>Sent:</b> August 30, 2017 1:14 PM<br>
<b>To:</b> midPoint General Discussion<br>
<b>Subject:</b> [midPoint] Approval processes in Segregation of Duties</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">I am trying to configure Segregation of Duties in MidPoint so that when incompatible roles are requested, an approval process is triggered. I am able to successfully block assignment of incompatible roles by specifying
“<enforcement>” in the policy actions. However, when I replace “enforcement” with “approval,” MidPoint seems to ignore any approval process specified and assigns the role. I noticed the tag “prune” is also ignored when specified here. I am using MidPoint version
3.6.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Here is my code:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <assignment id="7"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <policyRule><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <name>Exclude Role Assignment</name><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <policyConstraints><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <exclusion><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <targetRef oid="(ROLE OID)"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> relation="org:default"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> type="c:RoleType"></targetRef><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </exclusion><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </policyConstraints><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <policyActions><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <approval><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <compositionStrategy><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <order>10</order><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </compositionStrategy><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <approvalSchema><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <level><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <name>Auditing Approval</name><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <approverRef oid="(APPROVER OID)"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> relation="org:default"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> type="c:OrgType"></approverRef><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <evaluationStrategy>firstDecides</evaluationStrategy><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <groupExpansion>onWorkItemCreation</groupExpansion><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </level><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </approvalSchema><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </approval><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </policyActions><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </policyRule><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> </assignment><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Any thoughts on how to make this work?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Alex<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>