<div dir="ltr">The sample is using a condition to check for the role type attribute that is set to 'auto' and then it is matching name that equals 'auto' + the name of the entitlement . You can try it for dev purposes without the condition and then adjust the script to <span style="color:rgb(0,0,0);font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;font-size:14px;white-space:nowrap">return entitlement?.getName(); </span><span style="color:rgb(0,0,0);white-space:nowrap"><font face="arial, helvetica, sans-serif" style="">You can also post your definition for association here,</font></span><div><div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 8, 2019 at 3:08 PM Justin Stanczak <<a href="mailto:rizenine@gmail.com">rizenine@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I do have a default role assigned in the user template. I tried the associations from (<a href="https://wiki.evolveum.com/display/midPoint/Inbound+Mapping" target="_blank">https://wiki.evolveum.com/display/midPoint/Inbound+Mapping</a>) the docs but I can't get it to work. Not sure what I'm doing wrong. Some of the docs seem to be incomplete. I'm inducing resources and assigning roles. I'm a bit unsure about the intent and entitlement part of associations. Thanks.</div><div dir="ltr"><br></div><div dir="ltr">
<br></div><div dir="ltr"><objectTemplate .....<br></div><div dir="ltr"><i>    <mapping id="2"></i></div><div dir="ltr"><i>        <name>end user role</name></i></div><div dir="ltr"><i>        <strength>strong</strength></i></div><div dir="ltr"><i>        <expression></i></div><div dir="ltr"><i>            <assignmentTargetSearch xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:type="c:AssignmentTargetSearchExpressionEvaluatorType"></i></div><div dir="ltr"><i>                <targetType>c:RoleType</targetType></i></div><div dir="ltr"><i>                <oid>9a355bd4-07b3-44e5-8708-caa43e94c2b6</oid></i></div><div dir="ltr"><i>            </assignmentTargetSearch></i></div><div dir="ltr"><i>        </expression></i></div><div dir="ltr"><i>        <target></i></div><div dir="ltr"><i>            <c:path>assignment</c:path></i></div><div dir="ltr"><i>        </target></i></div><div dir="ltr"><i>    </mapping></i></div><div dir="ltr">.....objectTemplate ><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 8, 2019 at 3:47 PM Jason Everling <<a href="mailto:jeverling@bshp.edu" target="_blank">jeverling@bshp.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">looks like it is trying to replace the end user role but that is assigned from a strong condition in your default user template. You can create inbound assignment mappings from association.</div>
</blockquote></div></div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>