<div dir="ltr">Radovan, Pavol,<div><br></div><div>First off, thanks for your input. We were unaware that midPoint would offer such native functionality, therefore it was never considered as an alternative to this need. We'll be modifying our design so we handle this through the native validTo and validFrom attributes. </div><div><br></div><div>Sorry for the delayed response,</div><div><br></div><div>Thanks again,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><b>Rodrigo Yanis.</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br></font>Jorge Newbery 3226<br>Tel: +54 (11) 4824-9971<font face="arial, helvetica, sans-serif"><br><a href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br><a href="http://www.identicum.com/" target="_blank"><font color="#0b5394">www.identicum.com</font></a></font></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-08-23 10:52 GMT-03:00 Radovan Semancik <span dir="ltr"><<a href="mailto:radovan.semancik@evolveum.com" target="_blank">radovan.semancik@evolveum.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Rodrigo,<br>
    <br>
    Just a curious question: What is the reason that you do not user the
    activation/validTo property of the user?<br>
    <br>
    I'm not trying to persuade you or push you to use a specific
    solution. I just wonder whether the midPoint validity time
    constraints have some limitation that prohibits the use in practice
    or whether there is some other barrier.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Radovan Semancik
Software Architect
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre></font></span><div><div class="h5">
    <br>
    <br>
    <br>
    <div>On 08/22/2016 09:00 PM, Rodrigo Yanis
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello everyone,
        <div><br>
        </div>
        <div>I'm currently trying to build a task to disable users when
          they reach their termination date in midPoint (expressed on a
          custom attribute as dd/MM/yyyy).</div>
        <div><br>
        </div>
        <div>I'm having difficulties defining a search filter that would
          evaluate equality to a value returned by a Groovy script, the
          code is the following:</div>
        <div><br>
        </div>
        <div>
          <div><scext:executeScript xmlns:scext="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>model/scripting/extension-3</a>"></div>
          <div>                <s:search xmlns:s="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>model/scripting-3</a>"></div>
          <div>                   
            <s:type>c:UserType</s:type></div>
          <div>                    <s:searchFilter></div>
          <div>                        <q:equal></div>
          <div>                           
            <q:path>extension/metaEndDate<<wbr>/q:path></div>
          <div>                            <c:expression></div>
          <div>                                <c:script></div>
          <div>                                    <c:code></div>
          <div>                                        def dateTime =
            new Date().format( 'dd/MM/yyyy' );</div>
          <div>                                        return
            dateTime.toString();</div>
          <div>                                    </c:code></div>
          <div>                                </c:script></div>
          <div>                            </c:expression></div>
          <div>                        </q:equal></div>
          <div>                    </s:searchFilter></div>
          <div>                    <s:action></div>
          <div>                       
            <s:type>disable</s:type></div>
          <div>                    </s:action></div>
          <div>                </s:search></div>
          <div>            </scext:executeScript></div>
          <div><br>
          </div>
          <div>Error (execution time) I recieve is the following: <span>Couldn't
              execute script: Couldn't parse object filter due to schema
              exception</span></div>
          <div><span><br>
            </span></div>
          I understand this must be related to namespaces definitions. I
          couldn't find any example of what i'm trying to do either.</div>
        <div><br>
        </div>
        <div>Do you know if this is possible?</div>
        <div><br>
        </div>
        <div>Thanks.<br>
          <div>
            <div data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr"><br>
                              </div>
                              <div dir="ltr"><font face="arial,
                                  helvetica, sans-serif"><b>Rodrigo
                                    Yanis.</b><br>
                                  <img src="http://www.identicum.com/img/favicon.ico">Identicum
                                  S.A.<br>
                                </font>Jorge Newbery 3226<br>
                                Tel: +54 (11) 4824-9971<font face="arial, helvetica, sans-serif"><br>
                                  <a href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br>
                                  <a href="http://www.identicum.com/" target="_blank"><font color="#0b5394">www.identicum.com</font></a></font></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><span class=""><pre>______________________________<wbr>_________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
    </span></blockquote>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br></div>