<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font face="DejaVu Sans">Hi,</font></p>
    <p><font face="DejaVu Sans">actually I made it using this bulk
        action:</font></p>
    <p><font face="DejaVu Sans"><a class="moz-txt-link-freetext" href="http://pastebin.com/9DPKmTw8">http://pastebin.com/9DPKmTw8</a></font></p>
    <p>it was really simple with the midpoint query language and the
      anchorEnds filter.<br>
      I leave it here if someone needs this.<br>
      <br>
      Thank you all,<br>
      Marco<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 02/27/2017 05:31 PM, Marco Benucci
      wrote:<br>
    </div>
    <blockquote cite="mid:22782b51-ea53-a602-c4c3-07d56fbf3fce@nsr.it"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p><font face="DejaVu Sans">Hi, it's me again.<br>
        </font>We are running midpoint 3.4.1 and I'd like to assign a
        given role to all users in a specified ou that have a particular
        username (ends with ".e", ".ex" or ".ext").</p>
      <p>I think it should be possible by using bulks, maybe a mashup
        of:</p>
      <p><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/recompute-users-with-a-role.xml">https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/recompute-users-with-a-role.xml</a>
        (for getting users in a given OU)</p>
      <p>and <br>
      </p>
      <p><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/assign-enduser-role-to-selected-users.xml">https://github.com/Evolveum/midpoint/blob/master/samples/tasks/bulk-actions/assign-enduser-role-to-selected-users.xml</a>
        (assign a given role)</p>
      <p>It looks fine, but my problem is...<br>
        Is there a way to filter also by a endsWith filter in the
        searchFilter or in the action tags?</p>
      <p><br>
      </p>
      <p>Thank you all,<br>
        Marco<br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>