<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Gus,</p>
<p>please replace $user with $focus. That should help.</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 10/10/2020 02:24, Gus Lou via
midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+XZjGQV=yEsbUGS7=iU05iVjfNjG-W7=6UgbNZM8nheY4NJsg@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 dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi Guys
<div><br>
</div>
<div>
<div>I'm trying to create a distribution
group in Active Directory through
midpoint.</div>
<div>I'm following the idea of this
thread:</div>
<div><a
href="https://lists.evolveum.com/pipermail/midpoint/2014-December/000672.html"
moz-do-not-send="true">https://lists.evolveum.com/pipermail/midpoint/2014-December/000672.html</a></div>
</div>
<div><br>
</div>
<div>
<div>To achieve this goal I did the
following:</div>
<div><b>1-I created a custom field named
grouptype:</b></div>
</div>
<div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,254);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:complexType</span> <span style="color:rgb(255,0,0)">name</span>=<span style="color:rgb(0,0,255)">"RoleTypeExtensionType"></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:extension</span> <span style="color:rgb(255,0,0)">ref</span>=<span style="color:rgb(0,0,255)">"c:RoleType"</span><span style="color:rgb(128,0,0)">/</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:sequence</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:element</span> <span style="color:rgb(255,0,0)">name</span>=<span style="color:rgb(0,0,255)">"grouptype"</span> <span style="color:rgb(255,0,0)">type</span>=<span style="color:rgb(0,0,255)">"xsd:integer"</span> <span style="color:rgb(255,0,0)">minOccurs</span>=<span style="color:rgb(0,0,255)">"0"</span> <span style="color:rgb(255,0,0)">maxOccurs</span>=<span style="color:rgb(0,0,255)">"1"></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:indexed</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">a:indexed</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">a:displayName</span><span style="color:rgb(0,0,255)">></span>Group Type<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">a:displayName</span><span style="color:rgb(0,0,255)">></span> </div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:appinfo</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:annotation</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:element</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:sequence</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:complexType</span><span style="color:rgb(0,0,255)">></span></div><div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">xsd:schema</span><span style="color:rgb(0,0,255)">></span></div></div>
</div>
<div><br>
</div>
<div><b>I created the outbound mapping to
receive the value of the grouptype
field</b><br>
</div>
<div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,254);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">attribute</span> <span style="color:rgb(255,0,0)">id</span>=<span style="color:rgb(0,0,255)">"99"></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">c:ref</span> <span style="color:rgb(255,0,0)">xmlns:ri</span>=<span style="color:rgb(0,0,255)">"<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"></span>ri:groupType<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">c:ref</span><span style="color:rgb(0,0,255)">></span> </div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">outbound</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">authoritative</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">authoritative</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">exclusive</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">exclusive</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">strength</span><span style="color:rgb(0,0,255)">></span>normal<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">strength</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">source</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"><</span><span style="color:rgb(128,0,0)">c:path</span><span style="color:rgb(0,0,255)">></span>$user/extension/grouptype<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">c:path</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">source</span><span style="color:rgb(0,0,255)">></span></div><div> <span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">outbound</span><span style="color:rgb(0,0,255)">></span></div><div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(128,0,0)">attribute</span><span style="color:rgb(0,0,255)">></span></div></div>
</div>
<div><br>
</div>
<div>But when I try to save the mapping, I
get the following message:</div>
<div>Invalid source for outbound mapping
for "ri:groupType" in schema handling
for "AD Group (Kind:
ENTITLEMENT,intent:group)":No definition
for 'extension/grouptype" in user<br>
</div>
<div><br>
</div>
<div>Does anyone know what could be wrong?
I'm in the right way?<br>
</div>
<div><br>
</div>
<div>Best regards</div>
<div><br>
</div>
<div>Gus</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>