<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Jan,</p>
<p>hmmm. I see. Anyway, please try to add "return null" and, if that
would not help, invert "if" conditions. I am afraid I have no
other idea at this moment ...<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 26.01.2018 15:55, Jan Kaspar wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3uH.vP8.6qPHzfCb4nO.1QQq56@seznam.cz">Hi Pavol,
<div><br>
</div>
<div>thank you for reply. I found this code posted by Ivan in
2016.</div>
<div><br>
</div>
<div><a class="moz-txt-link-freetext" href="http://lists.evolveum.com/pipermail/midpoint/2016-May/001884.html">http://lists.evolveum.com/pipermail/midpoint/2016-May/001884.html</a><br>
</div>
<div><br>
</div>
<div>I used user template and change orgType to RoleType. It
worked for me. Imported users</div>
<div>had assigned correct roles in midpoint. Thats the reason why
I used RoleType.</div>
<div><br>
</div>
<div>The problem I have is in case that role (AD group) is not
imported to midpoint. That it fails.</div>
<div>We have a lot of AD groups managed by applications and those
shoudl not be in midpoint.</div>
<div><br>
</div>
<div>so that was the reason why i add condition</div>
<div><br>
</div>
<div><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"> if
(org != null)</span></div>
<div><span style="background-color:transparent"><br>
</span></div>
<div>With that condition i tryed to solve situation when role is
not found in Midpoint.</div>
<div><br>
</div>
<div>Jan</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</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>