[midPoint] Bulk: unassign resource

Martin Lízner - AMI Praha a.s. martin.lizner at ami.cz
Wed Mar 15 21:44:43 CET 2017


Hi, here is my custom bulk action that does about what you want :-) M.

<search xmlns="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3">
    <type>UserType</type>
    <searchFilter>
        <q:ref>
            <q:path>assignment/construction/resourceRef</q:path>
            <q:value oid="b0d3948b-b9f1-4497-a285-064601e5f964"/>
        </q:ref>
    </searchFilter>
    <action>
        <type>modify</type>
        <parameter>
          <name>delta</name>
          <c:value>
            <itemDelta>
              <modificationType>delete</modificationType>
              <path>assignment</path>
              <value>
                  <c:construction>
                    <c:resourceRef
oid="b0d3948b-b9f1-4497-a285-064601e5f964" type="c:ResourceType"/>
                  </c:construction>
              </value>
            </itemDelta>
          </c:value>
        </parameter>
    </action>
</search>

Martin Lízner
solution architect

gsm: [+420] 737 745 571
e-mail: martin.lizner at ami.cz


AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel.: [+420] 274 783 239
web: www.ami.cz



[image: AMI Praha a.s.] <http://www.skyidentity.com/>

Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za
společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně
písemnou formu.


2017-03-13 10:36 GMT+01:00 Marco Benucci <m.benucci at nsr.it>:

> Hi,
>
> I have set a default user template that assign a resource to new users.
> Now, I have to unassign that resource and re-create a similar resource on
> another database.
>
> I have already saw the bulk "assign resource to selected users", but is
> there a version that can unassign resources?
>
> Thank you,
> Marco
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170315/15e50796/attachment.htm>


More information about the midPoint mailing list