<div dir="ltr"><div>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:</div><div><br></div><div><pre class="gmail-rouge gmail-highlight"><code><span class="gmail-nt"> <activation></span>
<span class="gmail-nt"><existence></span>
<span class="gmail-nt"><outbound></span>
<span class="gmail-nt"><expression></span>
<span class="gmail-nt"><value>true</value></span>
<span class="gmail-nt"></expression></span>
<span class="gmail-nt"></outbound></span>
<span class="gmail-nt"></existence></span>
<span class="gmail-nt"><administrativeStatus></span>
<span class="gmail-nt"><outbound></span>
<span class="gmail-nt"><expression></span>
<span class="gmail-nt"><script></span>
<span class="gmail-nt"><code></span>
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType
if (legal) {
input
} else {
ActivationStatusType.DISABLED
}
<span class="gmail-nt"></code></span>
<span class="gmail-nt"></script></span>
<span class="gmail-nt"></expression></span>
<span class="gmail-nt"></outbound></span>
<span class="gmail-nt"></administrativeStatus></span>
<span class="gmail-nt"></activation></span></code></pre></div><div><div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-family:sans-serif;font-size:12px;line-height:1.5em"><span style="font-weight:bold">Drew Roberts</span> | <span style="font-weight:bold">Systems Administrator II</span><br>IT Platform Engineering, Azusa Pacific University<br><a href="https://apu.edu" target="_blank">apu.edu</a><br><br>“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<br><br><img style="width:210px" src="https://www.apu.edu/static/src/sites/strategic-communication-engagement/images/apu_125_logo.png" alt="APU logo"></div></div></div></div></div></div></div>