<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Chris, Gusto,</p>
    <p>looking at the source code (4.1) the unassigning of orgs should
      work, even if it is not documented.</p>
    <p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/a65a98b6f538bdd46282c3221ac82d98faa2fcc8/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L42-L57">https://github.com/Evolveum/midpoint/blob/a65a98b6f538bdd46282c3221ac82d98faa2fcc8/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L42-L57</a></p>
    <p>Please use "role" as the type specifier. I hope it will work.<br>
    </p>
    <p>Let's read it as "abstract role" (covering roles, orgs, services,
      and archetypes). I know that's a weak excuse of mine. ;-)</p>
    <p>Just by the way, in 4.2 the code was rewritten. It is still
      possible to use "role" for all abstract roles, but it is also
      possible to specify custom filter that would select all
      assignments that have to be deleted:</p>
    <p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/4a9f43994c29a8363c7594d78f152ac18de203fe/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L67-L82">https://github.com/Evolveum/midpoint/blob/4a9f43994c29a8363c7594d78f152ac18de203fe/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L67-L82</a></p>
    <p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/4a9f43994c29a8363c7594d78f152ac18de203fe/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L97-L112">https://github.com/Evolveum/midpoint/blob/4a9f43994c29a8363c7594d78f152ac18de203fe/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/UnassignExecutor.java#L97-L112</a></p>
    <p>Hope this helps,<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 09/09/2020 08:52, Pálos Gustáv via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPXQVkc0KCwqDHxEX0sOYouyxG6fZvDCn7jXKJ1dvjpXY0O4nA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>try to change <code class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)"><</code><code
            class="gmail-xml gmail-keyword"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;font-weight:bold;color:rgb(51,102,153)">s:name</code><code
            class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)">>role</</code><code
            class="gmail-xml gmail-keyword"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;font-weight:bold;color:rgb(51,102,153)">s:name</code><code
            class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)">></code></div>
        <div><code class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)">to: </code><code
            class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)"><</code><code
            class="gmail-xml gmail-keyword"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;font-weight:bold;color:rgb(51,102,153)">s:name</code><code
            class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)">>org</</code><code
            class="gmail-xml gmail-keyword"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;font-weight:bold;color:rgb(51,102,153)">s:name</code><code
            class="gmail-xml gmail-plain"
            style="font-family:Consolas,"Bitstream Vera Sans
            Mono","Courier
New",Courier,monospace;border-radius:0px;background-image:none;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:0px;float:none;height:auto;line-height:20px;margin:0px;outline:0px;overflow:visible;padding:0px;vertical-align:baseline;width:auto;box-sizing:content-box;font-size:14px;min-height:inherit;white-space:nowrap;color:rgb(0,0,0)">></code></div>
        <div><br>
        </div>
        Best regards,
        <div><br>
        </div>
        <div>Gustav<br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">st 9. 9. 2020 o 8:37 Chris
              Woods via midPoint <<a
                href="mailto:midpoint@lists.evolveum.com"
                moz-do-not-send="true">midpoint@lists.evolveum.com</a>>
              napísal(a):<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div lang="DE">
                <div>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">Hi,</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">is there an option to bulk unassign
                      organisations? I found an example here
                      <a
                        href="https://wiki.evolveum.com/pages/viewpage.action?pageId=13991970"
                        target="_blank" moz-do-not-send="true">https://wiki.evolveum.com/pages/viewpage.action?pageId=13991970</a>
                      (example 6). However, according to the
                      documentation I can only specify “role” or
                      “resource” as parameter names, no mention of org.</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">Any ideas? Of course I could write a
                      scripting task, but if the option is there using
                      the standard unassign expression type I would
                      prefer to use that.</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">Thanks in advance!</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">Regards,</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US">Chris</span></p>
                  <p class="MsoNormal"><span
                      style="font-size:11pt;line-height:112%"
                      lang="EN-US"> </span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <b><span
                        style="color:rgb(0,157,236);text-transform:uppercase"
                        lang="EN-US">CHRIS WOODS</span></b></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)" lang="EN-US">Identity
                      Management</span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)" lang="EN-US">Information
                      and Business Technology</span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)" lang="EN-US"> </span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)">Rohde &
                      Schwarz GmbH & Co. KG</span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)">Mühldofstraße 15|
                      81671 München
                    </span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)">Telefon: +49 89
                      4129 15735 </span></p>
                  <p class="MsoNormal"
                    style="margin-bottom:0.0001pt;line-height:normal">
                    <span style="color:rgb(0,60,116)">Internet: </span><span
                      style="color:rgb(0,62,118)"><a
                        href="https://www.rohde-schwarz.com/"
                        target="_blank" moz-do-not-send="true"><span
                          style="color:rgb(0,157,236)">https://www.rohde-schwarz.com</span></a></span><span
                      style="color:rgb(0,60,116)"></span></p>
                  <p class="MsoNormal"> </p>
                </div>
                <br>
                <br>
                <p style="font-size:8pt">Content provided within this
                  e-mail including any attachments, is for the use of
                  the intended recipients and may contain Rohde &
                  Schwarz company restricted information. Any
                  unauthorized use, disclosure, or distribution of this
                  communication in whole or in part is strictly
                  prohibited. If you are not the intended recipient,
                  please notify the sender by reply email or by
                  telephone and delete the communication in its
                  entirety.</p>
              </div>
              _______________________________________________<br>
              midPoint mailing list<br>
              <a href="mailto:midPoint@lists.evolveum.com"
                target="_blank" moz-do-not-send="true">midPoint@lists.evolveum.com</a><br>
              <a
                href="https://lists.evolveum.com/mailman/listinfo/midpoint"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
            </blockquote>
          </div>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div dir="ltr" class="gmail_signature">s pozdravom
            <div><br>
            </div>
            <div>Gustáv Pálos</div>
          </div>
        </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>