<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I think what you want is to <i>populate</i> (this is the
keyword) the assignment properties. That is done outside the
"target" element, but in "assignmentTargetSearch".<br>
</p>
<p>You should be able to use assignment properties (extensions) like
this:</p>
<div style="background-color:#ffffff;color:#080808">
<pre
style="font-family:'JetBrains Mono',monospace;font-size:9.0pt;"><<span
style="color:#0033b3;">expression</span>>
<<span style="color:#0033b3;">assignmentTargetSearch</span>>
<<span style="color:#0033b3;">targetType</span>>OrgType</<span
style="color:#0033b3;">targetType</span>>
<<span style="color:#0033b3;">filter</span>>
<span style="color:#8c8c8c;font-style:italic;"><!-- ... -->
</span><span style="color:#8c8c8c;font-style:italic;"> </span></<span
style="color:#0033b3;">filter</span>>
<<span style="color:#0033b3;">populate</span>>
<<span style="color:#0033b3;">populateItem</span>>
<<span style="color:#0033b3;">expression</span>>
<<span style="color:#0033b3;">script</span>>
<<span style="color:#0033b3;">code</span>><span
style="background-color:#edfced;">return 'General Manager of Universe'</span></<span
style="color:#0033b3;">code</span>>
</<span style="color:#0033b3;">script</span>>
</<span style="color:#0033b3;">expression</span>>
<<span style="color:#0033b3;">target</span>>
<<span style="color:#0033b3;">path</span>><u>extension/title</u></<span
style="color:#0033b3;">path</span>>
</<span style="color:#0033b3;">target</span>>
</<span style="color:#0033b3;">populateItem</span>>
</<span style="color:#0033b3;">populate</span>>
</<span style="color:#0033b3;">assignmentTargetSearch</span>>
</<span style="color:#0033b3;">expression</span>>
</pre>
</div>
<p></p>
<div class="moz-cite-prefix">See also here:
<a class="moz-txt-link-freetext" href="https://docs.evolveum.com/midpoint/reference/support-4.9/expressions/expressions/#assignment-target-search">https://docs.evolveum.com/midpoint/reference/support-4.9/expressions/expressions/#assignment-target-search</a></div>
<div class="moz-cite-prefix">Relation and subtype can be set using
"assignmentProperties" element as displayed in the documentation
(chapter: <b>Relation parameter</b>).</div>
<div class="moz-cite-prefix">Chapter: <b>Activation parameters</b>
shows how activation properties of assignment can be set; the
example above for extension property is analogous.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Hope this helps.<br>
</div>
<div class="moz-cite-prefix">Best regards,</div>
<div class="moz-cite-prefix">Ivan<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 30. 6. 2025 18:40, Bao Tran via
midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAO_WaVz7DKKSgdVP146oN+0yNgve27dYHiFb+9dLZzYdtV9DhQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">1.
We have successfully added an
AssignmentExtensionSchema.xml (attachment)
with detail:</span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">-
extension ref="c:AssignmentType"</span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">-
name=JobTitle</span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">-
DisplayName=<b>title</b></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<br>
And in <span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"> midpoint
GUI , it look like screenshot below </span></div>
<div><img
src="cid:part1.FDY9AtSs.ndPdnxig@evolveum.com" alt="title extension.png"
width="477" height="562" class=""><br>
</div>
<div><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">2. </span><font
color="#333333"
face="Lato Extended, Lato, Helvetica Neue, Helvetica, Arial, sans-serif">Currently,
we can only add assignment to user via </font><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">OrganizationName
(below xml) </span></div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"><br>
</span></div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">Our
goal: is how to configure the <b>HR-application-inbound.xml.</b>
:: </span><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"><b>inbound-schema</b>
, in order to </span></div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">-
Assign the user into Organization and add
value for the <b>title</b> (which is
extension above) </span></div>
<div><br>
</div>
<div><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"><attribute
id="49"></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<ref>ri:OrganizationName</ref></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<inbound id="50"></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<name>set-org-level1</name></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<expression></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<assignmentTargetSearch></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<targetType>OrgType</targetType></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<filter></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<q:equal></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<q:path>name</q:path></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<expression></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<script></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<code>input</span><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"> </span><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"></code></span></div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</script></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</expression></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</q:equal></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</filter></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</assignmentTargetSearch></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</expression></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<br>
</div>
<div><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<b>
<target></b></span><b><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<path>assignment</path></span></b><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<--
We can only find the <span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">OrganizationName
and make assignment for user --></span></div>
<div>
<-- How do we set value for extension::<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">JobTitle
above ? </span><span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">--></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<b></target></b></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
</inbound></span><br
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif">
<span
style="color:rgb(51,51,51);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif"></attribute></span></div>
<div><br>
</div>
<div>Thank you in advance </div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">Bao Tran
<div>Software developer</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Ivan Noris
Expert Identity Engineer
evolveum.com
</pre>
</body>
</html>