<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Keith,<div class="">I am fairly new to midPoint, so I may be a little off base. However, I have a Role that is similar to yours. </div><div class=""><br class=""></div><div class="">To make the Metarole assign the account to the LDAP Posix Group, I have to use <assignment> for the Metarole and <inducement> for writing the LDAP account and attributes.</div><div class=""><br class=""></div><div class=""><div class=""> <assignment></div><div class=""> <!-- This assigns the LDAP Group Metarole --></div><div class=""> <targetRef oid="10000000-0000-0000-0000-000000000003</div><span class="pl-s"><span class="pl-pds"></span></span><div class=""> </assignment></div><div class=""> </div><div class=""> <inducement></div><div class=""> <!-- Sends the job to the appropriate resource --></div><div class=""> <construction></div><div class=""> <resourceRef oid="10000000-0000-0000-0000-000000000004"</div><div class=""> relation="org:default"</div><div class=""> type="c:ResourceType"></resourceRef> </div><div class=""> <attribute></div><div class=""> <c:ref>ri:authServices</c:ref></div><div class=""> <outbound></div><div class=""> <strength>strong</strength></div><div class=""> <expression></div><div class=""> <value xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" class="">http://www.w3.org/2001/XMLSchema</a>"</div><div class=""> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>"</div><div class=""> xsi:type="xsd:string”>attribute</value></div><div class=""> </expression></div><div class=""> </outbound></div><div class=""> </attribute> </div><div class=""> </construction> </div><div class=""><br class=""></div><div class=""> </inducement></div><div class=""><br class=""></div><div class="">The Metarole I assign is basically this one: <a href="https://github.com/Evolveum/midpoint/blob/master/testing/story/src/test/resources/unix/role-meta-unix-group.xml" class="">https://github.com/Evolveum/midpoint/blob/master/testing/story/src/test/resources/unix/role-meta-unix-group.xml</a></div><div class=""><br class=""></div><div class="">Josh</div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 11, 2021, at 7:45 AM, Keith LeValley via midPoint <<a href="mailto:midpoint@lists.evolveum.com" class="">midpoint@lists.evolveum.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I was hoping someone might be able to explain the interaction with inducements using associations.</div><div class=""><br class=""></div><div class="">I am using the example from the demo site, the meta role used to grant group entitlements to openldap. Below is the xml of that inducements</div><div class=""><br class=""></div><div class=""><inducement id="2"><br class=""> <construction><br class=""> <resourceRef oid="2917a607-56a5-46cd-86a6-e8979bec7d31" relation="org:default" type="c:ResourceType"><br class=""> <!-- openldap --><br class=""> </resourceRef><br class=""> <kind>entitlement</kind><br class=""> <intent>group</intent><br class=""> </construction><br class=""> </inducement><br class=""> <inducement id="3"><br class=""> <construction><br class=""> <resourceRef oid="2917a607-56a5-46cd-86a6-e8979bec7d31" relation="org:default" type="c:ResourceType"><br class=""> <!-- openldap --><br class=""> </resourceRef><br class=""> <kind>account</kind><br class=""> <intent>default</intent><br class=""> <association id="3"><br class=""> <ref>ri:group</ref><br class=""> <outbound><br class=""> <expression><br class=""> <associationFromLink xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="c:AssociationFromLinkExpressionEvaluatorType"><br class=""> <projectionDiscriminator xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="c:ShadowDiscriminatorType"><br class=""> <kind>entitlement</kind><br class=""> <intent>group</intent><br class=""> </projectionDiscriminator><br class=""> </associationFromLink><br class=""> </expression><br class=""> </outbound><br class=""> </association><br class=""> </construction><br class=""> <order>2</order><br class=""> </inducement><br class=""></div><div class=""><br class=""></div><div class="">This works, when I assign a user to a group, assign that group to the meta role the user gets the openldap inducement and will be added to the group in openldap also.</div><div class=""><br class=""></div><div class="">Unfortunately this won't work for my setup, I need to split the inducement to openldap and to the group. The group and the user still get created but the association doesn't seem to work, the user is not assigned to the group. Below is the inducement to the group that entitles the user with the association</div><div class=""><br class=""></div><div class=""><inducement id="2"><br class=""> <construction><br class=""> <resourceRef oid="2917a607-56a5-46cd-86a6-e8979bec7d31" relation="org:default" type="c:ResourceType"><br class=""> <!-- openldap --><br class=""> </resourceRef><br class=""> <kind>account</kind><br class=""> <intent>default</intent><br class=""> <association id="9"><br class=""> <ref>ri:group</ref><br class=""> <outbound><br class=""> <expression><br class=""> <associationFromLink xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="c:AssociationFromLinkExpressionEvaluatorType"><br class=""> <projectionDiscriminator xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="c:ShadowDiscriminatorType"><br class=""> <kind>entitlement</kind><br class=""> <intent>group</intent><br class=""> </projectionDiscriminator><br class=""> </associationFromLink><br class=""> </expression><br class=""> </outbound><br class=""> </association><br class=""> </construction><br class=""> </inducement><br class=""></div><div class=""><br class=""></div><div class="">Below is the inducement used to entitle the group</div><div class=""><br class=""></div><div class=""><inducement id="2"><br class=""> <construction><br class=""> <resourceRef oid="2917a607-56a5-46cd-86a6-e8979bec7d31" relation="org:default" type="c:ResourceType"><br class=""> <!-- openldap --><br class=""> </resourceRef><br class=""> <kind>entitlement</kind><br class=""> <intent>group</intent><br class=""> </construction><br class=""> </inducement></div><div class=""><br class=""></div><div class="">This to me looks like it should work? The user still has the same inducements; it's just spread between two different roles instead of on a single meta role.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Keith LeValley<br class=""><div class=""><font face="arial, helvetica, sans-serif" class="">Identity Services Architect</font>, Davenport University</div><div class="">phone: (616) 732-1102</div><div class=""><a href="mailto:klevalley2@davenport.edu" target="_blank" class="">klevalley2@davenport.edu<br class=""></a></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">midPoint mailing list<br class=""><a href="mailto:midPoint@lists.evolveum.com" class="">midPoint@lists.evolveum.com</a><br class="">https://lists.evolveum.com/mailman/listinfo/midpoint<br class=""></div></blockquote></div><br class=""></div></body></html>