[midPoint] Apply a bulk action to a specific object type and subtype

Martin Spanik martin.spanik at evolveum.com
Thu Jul 13 10:17:30 CEST 2023


Hello Keith

 

Yes it is possible. I prepared example of such task – you can use and tune
it.

It’s tested on 4.7 and 4.4. I don’t know which version you are using.

 

Let’s assume that your groups are represented by roles in midPoint and you
have set of roles having attribute subtype with value ‘groupRole’. The role
has ‘Internal’ service assigned. You want to modify these roles. 

Example of the role is attached too.

 

Let’s get to the task:

 

You filter the objects in <objects> element of
task/activity/work/iteractiveScripting.

 

<objects>
    <type>RoleType</type>
    <query>
        <q:filter>
            <q:text>subtype = 'groupRole'</q:text>
        </q:filter>
    </query>
</objects>

 

Then you just run action on this set of objects.  This action applies
defined modification delta on the objects you selected in the filter.

 

The example task removes the assigned service. Commented part modifies just
description attribute - just as an example.

 

I hope it will help you.

 

Best regards,

 

Martin Spanik

Senior Identity Engineer

 

+421 905 334 507

 <mailto:martin.spanik at evolveum.com> martin.spanik at evolveum.com

 <https://www.evolveum.com/> https://evolveum.com

 

 

From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of
Keith Hazelton via midPoint
Sent: streda 12. júla 2023 22:01
To: midpoint at lists.evolveum.com
Cc: Keith Hazelton <hazelton at internet2.edu>
Subject: [midPoint] Apply a bulk action to a specific object type and
subtype

 

Is it possible to use a filter to perform a bulk action on a specific object
type and subtype?







I know pt can be done, for example, for user subtypes, but we want to remove
assignments for a specific subtype of group.

 

        Thanks in advance,   --Keith Hazelton

 

 

_________________________

hazelton at internet2.edu <mailto:hazelton at internet2.edu> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230713/a59c997d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RoleA.xml
Type: text/xml
Size: 1466 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230713/a59c997d/attachment-0002.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modifyGroupRoles.xml
Type: text/xml
Size: 2321 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230713/a59c997d/attachment-0003.xml>


More information about the midPoint mailing list