<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Brad,<br>
<br>
the form of <assignmentTargetSearch> you are using, i.e.<br>
<br>
<tt><span style="font-size: 11pt;"><assignmentTargetSearch><o:p></o:p><br>
<targetType>c:OrgType</targetType><o:p></o:p></span></tt><br>
<tt><span style="font-size: 11pt;">
<oid>..........</oid><o:p></o:p></span></tt><br>
<tt><span style="font-size: 11pt;"></assignmentTargetSearch></span></tt><br>
<tt><span style="font-size: 11pt;"></span></tt><br>
doesn't allow variables in the <oid> element. Only a constant
value is allowed there.<br>
<br>
However, it is possible to use the second form of
<assignmentTargetSearch> that uses a filter - as you used
before, and as Roman pointed to:<br>
<br>
<tt><assignmentTargetSearch></tt><tt><br>
</tt><tt> <targetType>c:OrgType</targetType></tt><tt><br>
</tt><tt> <filter></tt><br>
<tt> ...</tt><br>
<tt> </filter></tt><br>
<tt></assignmentTargetSearch></tt><tt><br>
</tt><br>
You just have to select a correct filter. The commonly used one
(<equals>) cannot match an OID, because technically OID is not
a property of an object. But there is another filter that can be
used: <inOid>. So it would look like this:<br>
<br>
<tt><assignmentTargetSearch></tt><tt><br>
</tt><tt> <targetType>OrgType</targetType></tt><tt><br>
</tt><tt> <filter></tt><br>
<tt> <inOid><br>
<expression><br>
<script><br>
<code>organizationalUnit</code><br>
</script><br>
</expression><br>
</inOid><br>
</tt> <tt> </filter></tt><br>
<tt></assignmentTargetSearch></tt><tt><br>
</tt><br>
Just a note: I've actually not seen this in a real deployment. I
would suggest to use the other option you indicated: set org name to
an OID, and use displayName to contain a human readable value. The
reason is that in the current version of midPoint the name must be
unique, even across the tenants.<br>
<br>
Best regards,<br>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 22.08.2016 14:47, Brad Fardig wrote:<br>
</div>
<blockquote
cite="mid:SG2PR06MB087060717423049234B9E80BCDE80@SG2PR06MB0870.apcprd06.prod.outlook.com"
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:"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: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: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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal00, li.msonormal00, div.msonormal00
{mso-style-name:msonormal0;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msochpdefault1, li.msochpdefault1, div.msochpdefault1
{mso-style-name:msochpdefault1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.emailstyle171
{mso-style-name:emailstyle171;}
span.emailstyle24
{mso-style-name:emailstyle24;}
p.msonormal01, li.msonormal01, div.msonormal01
{mso-style-name:msonormal01;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msochpdefault2, li.msochpdefault2, div.msochpdefault2
{mso-style-name:msochpdefault2;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.emailstyle1711
{mso-style-name:emailstyle1711;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.emailstyle241
{mso-style-name:emailstyle241;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.msochpdefault11, li.msochpdefault11, div.msochpdefault11
{mso-style-name:msochpdefault11;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle30
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:681712470;
mso-list-template-ids:-856791352;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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"><a moz-do-not-send="true"
name="_MailEndCompose"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hi
Roman,<o:p></o:p></span></a></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Thanks
again.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I
had something like that earlier this afternoon and now I get
no assignment at all. Your response has however made me
realise what the error is (just not how to fix it)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Given
the following org:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><org
xmlns=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
xmlns:icfs=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
xmlns:t=<a class="moz-txt-link-rfc2396E"
href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
xmlns:c=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
xmlns:q=<a class="moz-txt-link-rfc2396E"
href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
xmlns:ri=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
oid="d9ca2974-af5f-4ae7-acc4-dd9edc28e692"<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
version="2"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<name>users</name><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<description>Some Users</description><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<parentOrgRef oid="4564b008-e829-420c-bbf7-f2026af3434f"
type="c:OrgType"><!—Some Org
--></parentOrgRef><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<metadata><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<createTimestamp>2016-08-19T10:40:43.425+10:00</createTimestamp><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<creatorRef oid="00000000-0000-0000-0000-000000000002"
type="c:UserType"><!-- administrator
--></creatorRef><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<createChannel><a class="moz-txt-link-freetext"
href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a></createChannel><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<modifyTimestamp>2016-08-19T10:40:43.511+10:00</modifyTimestamp><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<modifierRef xmlns:tns=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
oid="00000000-0000-0000-0000-000000000002"<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
type="tns:UserType"><!-- administrator
--></modifierRef><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<modifyChannel><a class="moz-txt-link-freetext"
href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a></modifyChannel><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
</metadata><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<assignment id="1"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<targetRef oid="4564b008-e829-420c-bbf7-f2026af3434f"
type="c:OrgType"><!—Some Org --></targetRef><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
</assignment><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<activation><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<administrativeStatus>enabled</administrativeStatus><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<effectiveStatus>enabled</effectiveStatus><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<enableTimestamp>2016-08-19T10:40:43.478+10:00</enableTimestamp><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
</activation><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<iteration>0</iteration><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<iterationToken/><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<roleMembershipRef
oid="4564b008-e829-420c-bbf7-f2026af3434f"
type="c:OrgType"><!—Some Org
--></roleMembershipRef><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<displayName>Users</displayName><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<orgType>functional</orgType><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
<tenant>false</tenant><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"></org><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I’m
trying to access the OID value:
oid="d9ca2974-af5f-4ae7-acc4-dd9edc28e692"<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">I
could use the name value but it is not guaranteed to be
unique within an organisation nor across tenants.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Is
there any way to access the OID value or should I set the
name field to be the OID and set the displayName to the
human readable version? I’d prefer to be able to access the
OID field as the other fields are defined as mutable.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Brad<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;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"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> Roman Pudil - AMI Praha a.s. [<a
class="moz-txt-link-freetext"
href="mailto:roman.pudil@ami.cz">mailto:roman.pudil@ami.cz</a>]
<br>
<b>Sent:</b> Monday, 22 August 2016 9:56 PM<br>
<b>To:</b> Brad Fardig <a class="moz-txt-link-rfc2396E"
href="mailto:brad.fardig@cogitogroup.com.au"><brad.fardig@cogitogroup.com.au></a>;
midPoint General Discussion <a
class="moz-txt-link-rfc2396E"
href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Subject:</b> Re[2]: [midPoint] Adding org assignment
via User Template<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Hi Brad,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">your
solution is wrong.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">You have
to linked org. unit OID with group ID synced from AD (or
their names for ex.).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Test it:<o:p></o:p></span></p>
</div>
<div>
<ol start="1" type="1">
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1"><span
style="font-family:"Tahoma",sans-serif">change organizationalUnit
attribute of the user to the org. unit name (which
exists in midPoint)<o:p></o:p></span></li>
<li class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
level1 lfo1"><span
style="font-family:"Tahoma",sans-serif">change
search filter in mapping to: <o:p></o:p></span></li>
</ol>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><expression><br>
<assignmentTargetSearch><br>
<targetType>c:OrgType</targetType><br>
<filter><br>
<q:equal><br>
<b><q:path>c:name</q:path><br>
</b><expression><br>
<script><br>
<code><br>
<b>return organizationalUnit;</b><br>
</code><br>
</script><br>
</expression><br>
</q:equal><br>
</assignmentTargetSearch><br>
</expression><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">The
better solution is to reconcile AD groups to midPoint.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Regards<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div id="signature_old">
<div>
<table class="MsoNormalTable"
style="border-collapse:collapse" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"
valign="bottom">
<p><b><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Roman
Pudil</span></b><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black"><br>
solution architect<br>
<br>
gsm: [+420] 775 663 666<br>
e-mail:<span class="apple-converted-space"> </span><a
moz-do-not-send="true"
href="mailto:roman.pudil@ami.cz">roman.pudil@ami.cz</a><o:p></o:p></span></p>
</td>
<td style="border:none;border-right:solid #CCCCCC
1.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> <o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> <o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt"
valign="bottom">
<p><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black">AMI
Praha a.s.<br>
Pláničkova 11<br>
162 00 Praha 6<br>
tel./fax: [+420] 274 783 239<br>
web:<span class="apple-converted-space"> </span><a
moz-do-not-send="true"
href="http://www.ami.cz">www.ami.cz</a><o:p></o:p></span></p>
</td>
<td style="border:none;border-right:solid #CCCCCC
1.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> <o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> <o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black"><img
moz-do-not-send="true" id="_x0000_i1025"
src="http://www.ami.cz/images/podpis/ami_logo.gif"
border="0"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="7" style="padding:.75pt .75pt .75pt
.75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"><br>
<a moz-do-not-send="true"
href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"><span
style="text-decoration:none"><img
moz-do-not-send="true" id="_x0000_i1026"
src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png"
border="0"></span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="7" style="padding:.75pt .75pt .75pt
.75pt">
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:gray"><br>
Textem tohoto e-mailu podepisující neslibuje
uzavřít ani neuzavírá za společnost AMI Praha
a.s.<br>
jakoukoliv smlouvu. Každá smlouva, pokud bude
uzavřena, musí mít výhradně písemnou formu.<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">------
Původní zpráva ------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Od:
"Brad Fardig" <<a moz-do-not-send="true"
href="mailto:brad.fardig@cogitogroup.com.au">brad.fardig@cogitogroup.com.au</a>><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Komu:
"Roman Pudil - AMI Praha a.s." <<a
moz-do-not-send="true" href="mailto:roman.pudil@ami.cz">roman.pudil@ami.cz</a>>;
"midPoint General Discussion" <<a
moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Odesláno:
22.8.2016 13:24:19<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Předmět:
RE: [midPoint] Adding org assignment via User Template<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
</div>
<div id="xa9a702db698e4d9">
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
8.0pt;margin-left:3.75pt;margin-top:2.25pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hi
Roman,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Sorry
forgot to say thank you for the quick response.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">A
check of the idm.log shows that there is an error,
which for the example I provided earlier is: </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">2016-08-22
20:44:22,704 [] [Thread-24] ERROR
(com.evolveum.midpoint.model.impl.lens.AssignmentEvaluator):
Object of type 'OrgType' with oid 'organizationalUnit'
was not found. in assignment target reference in delta
for user:62959f3e-c23d-46a5-9015-60017baf5043(</span><a
moz-do-not-send="true"
href="mailto:test.user4@demo.local"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">test.user4@demo.local</span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Brad</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><o:p></o:p></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"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> midPoint [mailto:<a
moz-do-not-send="true"
href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>]
<b>On Behalf Of </b>Roman Pudil - AMI Praha a.s.<br>
<b>Sent:</b> Monday, 22 August 2016 8:58 PM<br>
<b>To:</b> midPoint General Discussion <<a
moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br>
<b>Subject:</b> Re: [midPoint] Adding org assignment
via User Template</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Hi
Brad,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">include
your mapping, org definition and response error
message.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Thanks!</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><br>
Regards</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div id="signature_old">
<div>
<table class="MsoNormalTable"
style="border-collapse:collapse" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"
valign="bottom">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Roman
Pudil</span></b><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black"><br>
solution architect<br>
<br>
gsm: [+420] 775 663 666<br>
e-mail:<span class="apple-converted-space"> </span><a
moz-do-not-send="true"
href="mailto:roman.pudil@ami.cz">roman.pudil@ami.cz</a></span><o:p></o:p></p>
</td>
<td style="border:none;border-right:solid #CCCCCC
1.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> </span><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> </span><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt"
valign="bottom">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black">AMI
Praha a.s.<br>
Pláničkova 11<br>
162 00 Praha 6<br>
tel./fax: [+420] 274 783 239<br>
web:<span class="apple-converted-space"> </span><a
moz-do-not-send="true"
href="http://www.ami.cz">www.ami.cz</a></span><o:p></o:p></p>
</td>
<td style="border:none;border-right:solid #CCCCCC
1.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> </span><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"> </span><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black"><img
moz-do-not-send="true" id="_x0000_i1027"
src="http://www.ami.cz/images/podpis/ami_logo.gif"
border="0"></span><o:p></o:p></p>
</td>
</tr>
<tr>
<td colspan="7" style="padding:.75pt .75pt .75pt
.75pt">
<p class="MsoNormal"><span
style="font-size:13.5pt;color:black"><br>
<a moz-do-not-send="true"
href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"><span
style="text-decoration:none"><img
moz-do-not-send="true"
id="_x0000_i1028"
src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png"
border="0"></span></a></span><o:p></o:p></p>
</td>
</tr>
<tr>
<td colspan="7" style="padding:.75pt .75pt .75pt
.75pt">
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:gray"><br>
Textem tohoto e-mailu podepisující neslibuje
uzavřít ani neuzavírá za společnost AMI
Praha a.s.<br>
jakoukoliv smlouvu. Každá smlouva, pokud
bude uzavřena, musí mít výhradně písemnou
formu.</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">------
Původní zpráva ------</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Od:
"Brad Fardig" <<a moz-do-not-send="true"
href="mailto:brad.fardig@cogitogroup.com.au">brad.fardig@cogitogroup.com.au</a>></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Komu:
"<a moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>"
<<a moz-do-not-send="true"
href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Odesláno:
22.8.2016 12:54:47</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif">Předmět:
[midPoint] Adding org assignment via User Template</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"> </span><o:p></o:p></p>
</div>
<div id="x134b27ee79db483">
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
8.0pt;margin-left:3.75pt;margin-top:2.25pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">I
have a user template where I am trying to assign an
org based on an oid that is set as part of the user
import.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">The
assignment mapping looks like:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><mapping></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<name>map organization</name></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<strength>strong</strength></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<source></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<path>$user/organizationalUnit</path></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</source></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<expression></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<assignmentTargetSearch></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<targetType>c:OrgType</targetType></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<oid>Need to put organizationalUnit OID
here</oid></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</assignmentTargetSearch></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</expression></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<target></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<c:path>assignment</c:path></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</target></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"></mapping></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Issue
is I can’t get the OID value populated in the
<oid> tag of the assignmentTargetSearch</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Any
help greatly appreciated</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Brad</span><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><span
style="font-family:"Tahoma",sans-serif"><br>
<br>
<i>This email, and any attachment, is confidential and
also privileged. If you have received it in error,
please notify me immediately and delete it from your
system along with any attachments. You should not copy
or use it for any purpose, nor disclose its contents
to any other person. </i></span><o:p></o:p></p>
</blockquote>
</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>