<div dir="ltr">Hello everyone,<div><br></div><div>We're facing an issue in an ScriptedSQL connector where, when we modify a users' attribute, and this user is member to a role with a direct inducement to an entitlement, the resource perfoms the update of said attribute, and then executes an ADD_ATTRIBUTE_VALUES operation in the UpdateScript.groovy of this connector.</div><div><br></div><div>This ADD_ATTRIBUTE_VALUES operation is unrelated to the former operation that triggered this event (modify attribute), and is linked to the role that has the inducement to the entitlement. This is not something we want, as this triggers custom logic that is completely undrelated to an attribute modification.</div><div><br></div><div>In a different situation, if we try adding a role linked to a meta-role (with inducements to entitlements) to the user, this described before does not happen (the user attribute is modified and no other operation is triggered).</div><div><br></div><div>This is the XML of the role with the entitlement:</div><div><font size="1"><br></font></div><div><div><font size="1"><name>Role with direct inducement to the application</name></font></div><div><font size="1"> <metadata></font></div><div><font size="1"> <createTimestamp>2016-10-28T11:07:41.393-03:00</createTimestamp></font></div><div><font size="1"> <creatorRef oid="00000000-0000-0000-0000-000000000002" type="c:UserType"><!-- administrator --></creatorRef></font></div><div><font size="1"> <createChannel><a href="http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport">http://midpoint.evolveum.com/xml/ns/public/model/channels-3#objectImport</a></createChannel></font></div><div><font size="1"> </metadata></font></div><div><font size="1"> <inducement id="1"></font></div><div><font size="1"> <construction></font></div><div><font size="1"> <resourceRef type="c:ResourceType"></font></div><div><font size="1"> <filter></font></div><div><font size="1"> <q:equal></font></div><div><font size="1"> <q:path>c:name</q:path></font></div><div><font size="1"> <q:value>SCRIPTEDSQL_1</q:value></font></div><div><font size="1"> </q:equal></font></div><div><font size="1"> </filter></font></div><div><font size="1"> </resourceRef></font></div><div><font size="1"> <kind>account</kind></font></div><div><font size="1"> <association></font></div><div><font size="1"> <c:ref>ri:GroupObjectClass</c:ref></font></div><div><font size="1"> <outbound></font></div><div><font size="1"> <strength>strong</strength></font></div><div><font size="1"> <expression></font></div><div><font size="1"> <associationTargetSearch></font></div><div><font size="1"> <filter></font></div><div><font size="1"> <q:equal></font></div><div><font size="1"> <q:path>attributes/icfs:name</q:path></font></div><div><font size="1"> <q:value>TEST_BU_CLASS1</q:value></font></div><div><font size="1"> </q:equal></font></div><div><font size="1"> </filter></font></div><div><font size="1"> <searchStrategy>onResourceIfNeeded</searchStrategy></font></div><div><font size="1"> </associationTargetSearch></font></div><div><font size="1"> </expression></font></div><div><font size="1"> </outbound></font></div><div><font size="1"> </association></font></div><div><font size="1"> </construction></font></div><div><font size="1"> </inducement></font></div><div><font size="1"></role></font></div></div><div><font size="1"><br></font></div><div>Do you have any clues on why this might be happening and how to avoid this ADD_ATTRIBUTE_VALUES operation?</div><div><br></div><div>Thanks in advance,</div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b>Rodrigo Yanis.</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br></font>Jorge Newbery 3226<br>Tel: +54 (11) 4824-9971<font face="arial, helvetica, sans-serif"><br><a href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br><a href="http://www.identicum.com/" target="_blank"><font color="#0b5394">www.identicum.com</font></a></font></div></div></div></div></div></div></div></div></div></div></div>
</div></div>