<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>hello,</p>
    <p>SomethIng like that  : this is a task that you should import from
      import menu and run from task menu.</p>
    <p>by group you mean midpoint organizations ?<br>
    </p>
    <p>This is not tested, so... but it just a start.</p>
    <p><br>
    </p>
    <?xml version="1.0" encoding="UTF-8"?><br>
    <objects
    xmlns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
            
    xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
             xmlns:q=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a><br>
             xmlns:t=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a><br>
             xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>><br>
        <task><br>
            <name>task suppression Assignement
    ETUDIANT-LICENCE</name><br>
            <extension><br>
                <scext:executeScript
xmlns:scext=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3">"http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3"</a><br>
                                    
    xmlns:s=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">"http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</a><br>
                                    
    xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
                                    
    xmlns:t=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a><br>
                                    
    xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
                                    
xmlns:api=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3">"http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"</a><br>
                                    
    xmlns:q=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a><br>
                                    
    xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
                                    
    xmlns:org=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/org-3">"http://midpoint.evolveum.com/xml/ns/public/common/org-3"</a>><br>
                    <s:search><br>
                        <s:type>c:UserType</s:type><br>
                        <s:query><br>
                            <q:filter><br>
                                <q:and><br>
                                    <q:equal><br>
                                       
    <q:path>subtype</q:path><br>
                                       
    <q:value>ETUDIANT-LICENCE</q:value><br>
                                    </q:equal><br>
                                    <q:org><br>
                                        <q:orgRef><br>
                                            <!-- TPC group
    (organization) --><br>
                                           
    <q:oid>1f043504-127b-4707-b4dd-11fa5603ef1e</q:oid><br>
                                        </q:orgRef><br>
                                       
    <q:maxDepth>unbounded</q:maxDepth><br>
                                    </q:org><br>
                                </q:and><br>
                            </q:filter><br>
                        </s:query><br>
    <br>
                        <s:action><br>
                            <s:type>modify</s:type><br>
                            <s:parameter><br>
                                <s:name>delta</s:name><br>
                                <c:value
    xsi:type="t:ObjectDeltaType"><br>
                                   
    <t:changeType>modify</t:changeType><br>
                                    <t:itemDelta><br>
                                       
    <t:modificationType>add</t:modificationType><br>
                                       
    <t:path>c:assignment</t:path><br>
                                        <t:value
    xsi:type="c:AssignmentType"><br>
                                            <!-- Telem role --><br>
                                            <targetRef
    oid="f602c03b-4c50-4a7c-8866-59202dc27fad" relation="org:default"
    type="c:RoleType"/><br>
                                            <!-- add multiple role is
    necessary --><br>
                                            <!--targetRef
    oid="other-role" relation="org:default" type="c:RoleType"/><br>
                                            <targetRef
    oid="another-role" relation="org:default" type="c:RoleType"/--><br>
                                        </t:value><br>
                                    </t:itemDelta><br>
                                </c:value><br>
                            </s:parameter><br>
                        </s:action><br>
    <br>
                    </s:search><br>
                </scext:executeScript><br>
            </extension><br>
            <ownerRef oid="00000000-0000-0000-0000-000000000002"/><br>
            <executionStatus>runnable</executionStatus><br>
    <br>
            <category>BulkActions</category><br>
           
<handlerUri><a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3">http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3</a></handlerUri><br>
            <recurrence>single</recurrence><br>
        </task><br>
    </objects><br>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 04/09/2020 à 09:33, mid point via
      midPoint a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:1575373363.3135574.1599204835144@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="color:;font: 10pt Helvetica Neue;">Good <font
          size="2"><font face="Arial, Helvetica, sans-serif">morning<br>
            <br>
            I ask this question 2 weeks ago, and no answer.<br>
            I supposed i was wrong to think that this question would
            have interested a lot of midpoint users.<br>
            it is maybe too simple.<br>
            in case of someone has an example of bulk action that
            accomplish what i want, please do not hesitate to share<br>
            <br>
            Best regards<br>
            <br>
            <br>
          </font></font>
        <div> <br>
        </div>
        <div> <br>
        </div>
        <div> <br>
        </div>
        <div
          style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original
          Message-----<br>
          From: mid point <a class="moz-txt-link-rfc2396E" href="mailto:pointmid2@aol.com"><pointmid2@aol.com></a><br>
          To: <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
          Sent: Thu, Aug 20, 2020 5:41 pm<br>
          Subject: [midPoint] midpoint 4.0.1 - need to do a bulk action
          to assign users from AD specific security group to a role in
          midpoint<br>
          <br>
          <div id="yiv0335634793">
            <div style="font:10pt Helvetica Neue;"><font size="2"><font
                  face="Arial, Helvetica, sans-serif">Hello <br>
                  <br>
                  As a short introduction, i'm a new midpoint
                  administrator and i'm French :-)<br>
                  <br>
                  My company is using a midpoint solution, it was
                  installed recently by an external company.<br>
                  it is working fine so far.<br>
                  Midpoint has two AD domain resources<br>
                  <br>
                  I need to assign all users from an existing security
                  group within one of the AD ressources to a midpoint
                  role<br>
                  I already created the midpoint role with all necessary
                  assignments and inducements<br>
                  <br>
                  but there is too much users in the security group to
                  assign them one by one and i would like to use bulk
                  action to do this.<br>
                  Unfortunately , my developer skills are null and for
                  this reason kindly request your help<br>
                  <br>
                  I hope one of you will  help me and give me a good
                  script.I hope the data below can be enough <br>
                  <br>
                  the role name is : Telem                      his OID
                  is  </font></font><font size="2"><font face="Arial,
                  Helvetica, sans-serif"><span>f602c03b-4c50-4a7c-8866-59202dc27fad<br>
                  </span>the security group name is TPC </font></font><font
                size="2"><font face="Arial, Helvetica, sans-serif"><span>   
                          his  OID is
                    1f043504-127b-4707-b4dd-11fa5603ef1e<br>
                  </span>the AD ressource name is Internal       his 
                  OID is </font></font><font size="2"><font
                  face="Arial, Helvetica, sans-serif"><span>e580a543-6b87-460b-aa80-3525e436cf9f</span><br>
                  <br>
                  thanks in advance<br>
                  <br>
                  Raymond<br>
                </font></font></div>
          </div>
          _______________________________________________<br>
          midPoint mailing list<br>
          <a ymailto="mailto:midPoint@lists.evolveum.com"
            href="mailto:midPoint@lists.evolveum.com"
            moz-do-not-send="true">midPoint@lists.evolveum.com</a><br>
          <a href="https://lists.evolveum.com/mailman/listinfo/midpoint"
            target="_blank" moz-do-not-send="true">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>