[midPoint] Append assignments to previous user assignments

Mikko Pekkarinen mikko.pekkarinen at datactica.fi
Thu Feb 9 21:01:06 CET 2017


Hello,


I've had the same problem. I worked around it by not creating any assignments in the inbound mappings. Instead, I stored the relevant parameters in user's fields (organization in my case), and created the assignment in user template.


Mikko



________________________________
Lähettäjä: midPoint <midpoint-bounces at lists.evolveum.com> käyttäjän puolestaRodrigo Yanis <ryanis at identicum.com>
Lähetetty: 9. helmikuuta 2017 21:50
Vastaanottaja: midPoint General Discussion
Aihe: [midPoint] Append assignments to previous user assignments

Hello everyone,

I'm having issues keeping the user's previous assignments when a resource inbound mapping calculates and sets a list of assignments to that user.

I've already tried with tolerant setting on the mapping (set to true), but it still removes the old assignments and inserts the new, calculated ones.

Simplified inbound mapping look like this:
<inbound>
     <expression>
         <script>
             <code>
assignmentList = [];
...
                  assignmentList,add(assignment);
                        ...
return assignmentList;
  </code>
        </script>
    </expression>
    <target>
        <c:path>assignment</c:path>
    </target>
</inbound>

Do you know any setting I could try out so already present assignments are not removed?

Thanks,

Rodrigo Yanis.
[http://www.identicum.com/img/favicon.ico]Identicum S.A.
Jorge Newbery 3226
Tel: +54 (11) 4824-9971
ryanis at identicum.com<mailto:ryanis at identicum.com>
www.identicum.com<http://www.identicum.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170209/4408acd4/attachment.htm>


More information about the midPoint mailing list