[midPoint] populate assignment subtype

Skrzek Jaroslaw Jaroslaw.Skrzek at exence.com
Thu Jan 16 10:43:01 CET 2020


Good morning,
In fact I don’t want to propagate the subtype information into a resource. I’ve mentioned “outbound mapping”, because I wanted to create it in the resource configuration as an analogy to inbound mapping, which works for me (similar to the second example here https://wiki.evolveum.com/display/midPoint/Inbound+Mapping).
What I actually want to do is to create an assignment via Midpoint GUI and to set it’s subtype. I know that it can be filled in manually but I’d like to simplify it by automation (setting subtype).
Thank you for your mapping example.  As I suppose, this is an object template for a user?

Regards
Jaroslaw

From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of Arnošt Starosta - AMI Praha a.s.
Sent: Wednesday, January 15, 2020 4:11 PM
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Subject: Re: [midPoint] populate assignment subtype

I may not fully understand your situation, but setting subtype for assignments (links between idm focus and idm role) in object template works for me, see the code example below.

When you mention outbound mappings, it seems you want pro propagate this 'subtype' information not to idm focus assignments, but to the resource account membership in a resource role? This membership is called 'association' in midpoint and afaik it's there is no way to specify additional attributes of assignments via connid interface. But i may be wrong and/or your resource connector supports some hack to set subtypes to associations.

regards
arnost

    <mapping>
        <source>
            <path>$focus/extension/...</path>
        </source>
        <expression>
            <assignmentTargetSearch>
                <targetType>c:RoleType</targetType>
                <filter>...</filter>
                <populate>
                    <populateItem>
                        <expression>
                            <value>my-subtype</value>
                        </expression>
                        <target>
                            <path>subtype</path>
                        </target>
                    </populateItem>
                </populate>
            </assignmentTargetSearch>
        </expression>
        <target>
            <path>$focus/assignment</path>
            <set>...</set>
        </target>
    </mapping>


st 15. 1. 2020 v 14:56 odesílatel Skrzek Jaroslaw <Jaroslaw.Skrzek at exence.com<mailto:Jaroslaw.Skrzek at exence.com>> napsal:
Thank you Arnost,
I’ve tried that for outboundMapping but with no luck so far. Do you think it’s possible for outbound in general?

Regards
Jaroslaw

From: midPoint [mailto:midpoint-bounces at lists.evolveum.com<mailto:midpoint-bounces at lists.evolveum.com>] On Behalf Of Arnošt Starosta - AMI Praha a.s.
Sent: Wednesday, January 15, 2020 2:51 PM
To: midPoint General Discussion <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>>
Subject: Re: [midPoint] populate assignment subtype

Hi Jaroslaw,

you can fill assignment attributes via populate/populateItem, see here

 https://wiki.evolveum.com/display/midPoint/Expression

or checkout midpoint samples

https://github.com/Evolveum/midpoint-samples

arnost

st 15. 1. 2020 v 14:01 odesílatel Skrzek Jaroslaw <Jaroslaw.Skrzek at exence.com<mailto:Jaroslaw.Skrzek at exence.com>> napsal:
Hi,
Do you know how to assign a role to a user in such a way that the assignment subtype is filled?
Thanks

Pozdrawiam / Best regards

Jarosław Skrzek
Starszy Inżynier Oprogramowania / Senior Software Engineer

GSM: +48 601 308 901
e-mail: jaroslaw.skrzek at exence.com<mailto:jaroslaw.skrzek at exence.com>
Exence S.A.  | ul. Szwedzka 5, Bielany Wrocławskie | 55-040 Kobierzyce
tel.: +48 71 782 06 00 | fax: +48 71 782 06 01
https://www.exence.com<https://www.exence.com/> | e-mail: office at exence.com<mailto:office at exence.com>
Sąd Rejonowy we Wrocławiu dla Wrocławia-Fabrycznej, VI Wydział Gospodarczy KRS nr 0000413027
Kapitał zakładowy: 208.400,00 zł, opłacony w całości;  NIP: 899-273-40-56,  REGON: 021834967
Niniejsza wiadomość może zawierać informacje poufne i/lub prawnie chronione. Jeśli nie są Państwo właściwym jej adresatem (lub otrzymali Państwo tą wiadomość przez pomyłkę) prosimy poinformować o tym fakcie nadawcę i usunąć otrzymaną wiadomość. Kopiowanie, ujawnianie lub rozpowszechnianie informacji bez zgody jej nadawcy jest zabronione.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail by mistake) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint


--

Arnošt Starosta
solution architect

gsm: [+420] 603 794 932
e‑mail: arnost.starosta at ami.cz<mailto:arnost.starosta at ami.cz>

AMI Praha a.s.
Pláničkova 11, 162 00 Praha 6

tel.: [+420] 274 783 239 | web: www.ami.cz<https://www.ami.cz>

[AMI Praha a.s.]

Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.

Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat důvěrné nebo osobní
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv zveřejňování, zprostředkování
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně, informujte o tom prosím
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně všech jeho příloh. Nakládáním
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint


--

Arnošt Starosta
solution architect

gsm: [+420] 603 794 932
e‑mail: arnost.starosta at ami.cz<mailto:arnost.starosta at ami.cz>

AMI Praha a.s.
Pláničkova 11, 162 00 Praha 6

tel.: [+420] 274 783 239 | web: www.ami.cz<https://www.ami.cz>

[AMI Praha a.s.]

Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.

Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat důvěrné nebo osobní
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv zveřejňování, zprostředkování
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně, informujte o tom prosím
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně všech jeho příloh. Nakládáním
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200116/9ea61b70/attachment.htm>


More information about the midPoint mailing list