<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I’m using midPoint 3.2 and I have an Active Directory as target resource. I need to disable an Active Directory account when the user linked to the account is assigned to a particular midPoint Organizational Unit.</div><div class=""><br class=""></div><div class="">In the inducement section of the OU I have this snippet code:</div></div><div class=""><br class=""></div><div class=""><div style="font-family: HelveticaNeue;" class=""><inducement id="1"></div><div style="font-family: HelveticaNeue;" class="">      <construction></div><div style="font-family: HelveticaNeue;" class="">         <resourceRef oid="Resource-ActiveDirectory" type="c:ResourceType"></resourceRef></div><div style="font-family: HelveticaNeue;" class="">         <kind>account</kind></div><div style="font-family: HelveticaNeue;" class="">         <attribute></div><div style="font-family: HelveticaNeue;" class="">            <c:ref>activation/administrativeStatus</c:ref></div><div style="font-family: HelveticaNeue;" class="">            <outbound></div><div style="font-family: HelveticaNeue;" class="">               <expression></div><div style="font-family: HelveticaNeue;" class="">                  <value>disabled</value></div><div style="font-family: HelveticaNeue;" class="">               </expression></div><div style="font-family: HelveticaNeue;" class="">            </outbound></div><div style="font-family: HelveticaNeue;" class="">         </attribute></div><div style="font-family: HelveticaNeue;" class="">      </construction></div><div style="font-family: HelveticaNeue;" class="">   </inducement></div></div><div class=""><br class=""></div><div class=""><div class="">When I assign a midPoint user to the Organizational Unit, I receive an error and the operation fails. </div><div class=""><br class=""></div><div class="">What I’m doing wrong? What is the correct way to do that?</div><div class=""><br class=""></div><div class="">Thanks in advance for the help.</div><div class=""><br class=""></div><div class="">Regards.</div></div><div class=""><br class=""></div><div class="">  Fabio</div><div class=""><div apple-content-edited="true" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div></div></div></div></div></div></div></body></html>