<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Om,</p>
<p>unfortunately, it's not possible to use tag in the projection
discriminator. (Although the schema allows it, it is ignored by
the code.)</p>
<p>I am quite surprised you have different tags for groups. Usually,
they are used for accounts. What is your use case?</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 03/06/2025 13:42, Om Bhallamudi via
midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:kIRqDp63mbOpQG9xfxYGt_Sy0AxxQsMY7yTSe1j66flHCcou0oNMXLRK9MCMJddfgyVTzbTsc5lJ_Nmvyj5krERHgyGCdV3IA00czEjJLWE=@proton.ch">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
</div>
<div><span>I'm working with the multi-account feature (<a
target="_blank" rel="noreferrer nofollow noopener"
href="https://docs.evolveum.com/midpoint/reference/support-4.8/resources/multiaccounts/"
moz-do-not-send="true" class="moz-txt-link-freetext">https://docs.evolveum.com/midpoint/reference/support-4.8/resources/multiaccounts/</a>)
in 4.8.5, and I am using mappings to create multiple accounts
(same kind, intent, different tag) on a resource. </span><span
style="font-size: 0.875rem;">I am stuck trying to perform
association between entitlements/groups on the resource and
one of the multiple accounts.<br>
<br>
</span></div>
<blockquote
style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 10px; color: rgb(102, 102, 102);"><span><construction></span>
<div><span> <!-- multi account resource --></span></div>
<div><span> <resourceRef oid="..." relation="org:default"
type="c:ResourceType" /></span></div>
<div><span> <kind>account</kind></span></div>
<div><span> <intent>user_account</intent></span></div>
<div><span> <association id="44"></span></div>
<div><span> <ref>ri:entitlement</ref></span></div>
<div><span> <outbound></span></div>
<div><span>
<name>account-group-outbound</name></span></div>
<div><span> <strength>strong</strength></span></div>
<div><span> <expression></span></div>
<div><span> <associationFromLink></span></div>
<div><span> <projectionDiscriminator
xsi:type="c:ShadowDiscriminatorType"></span></div>
<div><span>
<kind>entitlement</kind></span></div>
<div><span>
<intent>entitlement</intent></span></div>
<div><span> </projectionDiscriminator></span></div>
<div><span> </associationFromLink></span></div>
<div><span> </expression></span></div>
<div><span> </outbound></span></div>
<div><span> </association></span></div>
<span></construction></span></blockquote>
<div><span style="font-size: 0.875rem;"><br>
</span></div>
<div><span style="font-size: 0.875rem;">From what I can see, I can
use kind and intent in the association construction, is there
a way to use the </span><code style="font-size: 0.875rem;">tag</code><span
style="font-size: 0.875rem;"></span><span
style="font-size: 0.875rem;"> too? Or perhaps some way to
target a certain account?</span></div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br>
</div>
<div class="protonmail_signature_block"
style="font-family: Arial, sans-serif; font-size: 14px;">
<div class="protonmail_signature_block-user"> Om Bhallamudi<br>
Proton AG </div>
<div
class="protonmail_signature_block-proton protonmail_signature_block-empty">
</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>
</body>
</html>