[midPoint] How to construct two personas to one User at once

Guckenbiehl, Gabriel gabriel.guckenbiehl at uni-due.de
Mon Oct 21 17:22:22 CEST 2019


Dear all,

in my Midpoint-Instance, inspired by the "Personas" in the Wiki) I have an
archetype assigned to every UserType-Object, which is a real life person (as
opposed to some Rooms or other).

This archetype (code below in parts) contains two inducements for the
construction of one persona each. (Actually only one of these shall be
applied for everyone, but the condition is not implemented yet).

The personas shall be constructed via two different templates, the mappings
for the name-attribute of the personas have different sources and construct
very different name-schemes.

But when I try to import from my HR-Resource (all imports from there should
get the Archetype assigned via object template), I get an "Merging of
multiple persona constructions is not supported yet"-Error-Message. That's
totally fine, as I indeed to not want to merge these two personas. But how
do I tell midpoint not to try and construct both of the personas.

Best Regards

Gabriel

Gabriel Guckenbiehl, M.Sc.
Zentrum für Informations- und Mediendienste (ZIM)
Universität Duisburg Essen
Schützenbahn 70
45127 Essen
Telefon: +49 (201) 183-3346



<archetype>
    <name>Physical user</name>
    <inducement id="7">
        <personaConstruction>
            <targetType>UserType</targetType>
            <objectMappingRef
xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="6a17fbd0-ea7d-4106-8690-7214408b6e06" relation="org:default"
type="tns:ObjectTemplateType">
                <!-- Persona Template 1-->
            </objectMappingRef>
        </personaConstruction>
    </inducement>
    <inducement id="8">
        <personaConstruction>
            <targetType>UserType</targetType>
            <objectMappingRef
xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="df3af2a6-511a-4edf-9e36-51ce7eb23919" relation="org:default"
type="tns:ObjectTemplateType">
                <!-- Persona Template 2 -->
            </objectMappingRef>
        </personaConstruction>
    </inducement>
</archetype>


<objectTemplate " oid="6a17fbd0-ea7d-4106-8690-7214408b6e06">
    <name>Persona Template 1</name>
    <item id="20">
        <c:ref>name</c:ref>
        <mapping id="23">
            <source>
                <c:path>extension/anAttribute</c:path>
            </source>
        </mapping>
    </item>
</objectTemplate>


<objectTemplate oid="df3af2a6-511a-4edf-9e36-51ce7eb23919">
    <name>Persona Template 2</name>
    <item id="20">
        <c:ref>name</c:ref>
        <mapping id="23">
            <source>
                <c:path>extension/anotherAttribute</c:path>
            </source>
        </mapping>
    </item>
</objectTemplate>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6342 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20191021/3c98dba3/attachment.bin>


More information about the midPoint mailing list