[midPoint] Disable resources when Persona is deleted

Drew Roberts aroberts at apu.edu
Tue Nov 7 20:07:44 CET 2023


Does anybody know if it's possible to disable a resource that is assigned
to a Persona when that Persona is deleted? The administrativeStatus script
I have doesn't seem to run when a Persona is deleted. Here's what I've been
trying:

             <activation>
                <existence>
                    <outbound>
                        <expression>
                            <value>true</value>
                        </expression>
                    </outbound>
                </existence>
                <administrativeStatus>
                    <outbound>
                        <expression>
                            <script>
                                <code>
                                    import
com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType
                                    if (legal) {
                                        input
                                    } else {
                                        ActivationStatusType.DISABLED
                                    }
                                </code>
                            </script>
                        </expression>
                    </outbound>
                </administrativeStatus>
            </activation>


-- 
Drew Roberts  |  Systems Administrator II
IT Platform Engineering, Azusa Pacific University
apu.edu

“Do not conform to the pattern of this world, but be transformed by the
renewing of your mind. Then you will be able to test and approve what God’s
will is—his good, pleasing, and perfect will.” Romans 12:2

[image: APU logo]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231107/d4c0e476/attachment-0001.htm>


More information about the midPoint mailing list