<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Paul,<br></div><div> let me share the task definition doing the stuff.<br></div><div><br data-mce-bogus="1"></div><div>Few notes:<br data-mce-bogus="1"></div><div>- As you are loging just oid, the request for the object from the repository would be wasting of the performance (I have left it there as comment). <br data-mce-bogus="1"></div><div>- if you need to limit to Org only, you can make the condition ( <!--StartFragment-->a == "test-assignment"<!--EndFragment--> ) more complex involving other tests e.g. related to the <!--StartFragment-->assignment.targetRef.type<!--EndFragment--> .<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> <!--StartFragment-->I hope it will help you with your issue...<!--EndFragment--> </div><div><br data-mce-bogus="1"></div><div>BR,</div><div> Kamil<br data-mce-bogus="1"></div><div>-----<br data-mce-bogus="1"></div><div><task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"<br> xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"<br> xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"<br> xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"<br> xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"<br> xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<br> xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"<br> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br> oid="00000000-c001-cafe-0000-000000000001"><br> <name>remove assignment by subtype</name><br> <assignment><br> <targetRef oid="00000000-0000-0000-0000-000000000509" relation="org:default" type="c:ArchetypeType"/><br> </assignment><br> <ownerRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType"/><br> <executionState>runnable</executionState><br> <category>BulkActions</category><br> <binding>loose</binding><br> <schedule><br> <recurrence>single</recurrence><br> </schedule><br> <activity><br> <work><br> <iterativeScripting><br> <objects><br> <type>UserType</type><br> <query><br> <q:filter><br> <q:equal><br> <q:path>assignment/subtype</q:path><br> <q:value>test-assignment</q:value><br> </q:equal><br> </q:filter><br> </query><br> </objects><br> <scriptExecutionRequest xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"><br> <s:action><br> <s:type>execute-script</s:type><br> <s:parameter><br> <s:name>script</s:name><br> <value xsi:type="c:ScriptExpressionEvaluatorType"><br> <code><br> import com.evolveum.midpoint.prism.delta.ObjectDelta<br> import com.evolveum.midpoint.prism.delta.builder.S_ItemEntry<br> import com.evolveum.midpoint.prism.path.ItemPath<br> import com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType<br> import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType<br><br> UserType user = input as UserType<br> List<AssignmentType> assignmentsToRemove = new ArrayList()<br> for (AssignmentType assignment : user.getAssignment()) {<br> if (assignment.subtype != null && assignment.subtype.size() != 0) {<br> for (String a : assignment.subtype) {<br> if (a == "test-assignment") {<br>// ###################<br>// OrgType org = midpoint.resolveReferenceIfExists(assignment.targetRef)<br>// log.info("Found test-assignment to Org: {}",org.oid)<br>// # Why to resolve the Org object in case you are logging just oid ?<br>// ###################<br> log.info("Found test-assignment to {}: {}",<br> assignment.targetRef.type.localPart,<br> assignment.targetRef.oid<br> )<br> if (!assignmentsToRemove.contains(assignment)) {<br> assignmentsToRemove.add(assignment)<br> break<br> }<br> }<br><br> }<br> }<br> }<br> S_ItemEntry removeAssignments = midpoint.prismContext.deltaFor(UserType.class)<br> for (AssignmentType assignmentToRemove : assignmentsToRemove) {<br> removeAssignments = removeAssignments.item(ItemPath.create(UserType.F_ASSIGNMENT)).delete(assignmentToRemove.clone())<br> }<br> ObjectDelta removeAssignmentsDelta = removeAssignments.asObjectDelta(user.oid)<br> if (removeAssignmentsDelta) {<br> log.info("Removing the selected assignments...")<br> midpoint.executeChanges(Arrays.asList(removeAssignmentsDelta))<br> }<br> </code><br> </value><br> </s:parameter><br> </s:action><br> </scriptExecutionRequest><br> </iterativeScripting><br> </work><br> </activity><br></task><br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Paul Caskey via midPoint" <midpoint@lists.evolveum.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com>, "martin spanik" <martin.spanik@evolveum.com><br><b>Cc: </b>"Paul Caskey" <pcaskey@internet2.edu><br><b>Sent: </b>Monday, July 17, 2023 2:01:41 AM<br><b>Subject: </b>Re: [midPoint] Apply a bulk action to a specific object type and subtype<br></div><div><br><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.contentpasted1
{mso-style-name:contentpasted1;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></div><div data-marker="__QUOTED_TEXT__">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Hi-</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">I’m working with Keith (the OP) and our use case for this is trying to remove old assignments. These are assignments on user objects to orgs that have already been deleted.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">The code below selects exactly the assignments I need to remove, but I can’t figure out how to remove or unassign the assignments.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Does anyone know how to remove/unassign an assignment inside a bulk action of type ‘execute-script’?</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Here’s what selects the assignments I need to delete:</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"><s:executeScript xmlns:s=<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</a> xmlns:c=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>
xmlns:icfs=<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</a> xmlns:org=<a href="http://midpoint.evolveum.com/xml/ns/public/common/org-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/common/org-3</a>
xmlns:q=<a href="http://prism.evolveum.com/xml/ns/public/query-3" target="_blank" rel="nofollow noopener noreferrer">http://prism.evolveum.com/xml/ns/public/query-3</a> xmlns:ri=<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>
xmlns:t=<a href="http://prism.evolveum.com/xml/ns/public/types-3" target="_blank" rel="nofollow noopener noreferrer">http://prism.evolveum.com/xml/ns/public/types-3</a> xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="nofollow noopener noreferrer">http://www.w3.org/2001/XMLSchema-instance</a>></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:search></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:type>c:UserType</s:type></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:query></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <q:filter></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <q:equal></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <q:path>assignment/subtype</q:path></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <q:value>test-assignment</q:value></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </q:equal></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </q:filter></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </s:query></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:action></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:type>execute-script</s:type></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:parameter></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:name>script</s:name></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <s:value></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <code xmlns=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank" rel="nofollow noopener noreferrer">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">import com.evolveum.midpoint.xml.ns._public.common.common_3.*;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">import com.evolveum.midpoint.model.api.*;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">import com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">import com.evolveum.midpoint.model.api.ModelExecuteOptions;</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">for (a in input.assignment) {<!-- --></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> if (a.subtype[0] == "test-assignment") {<!-- --></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> OrgType org = midpoint.resolveReferenceIfExists(a.targetRef);</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> log.info ("Found test-assignment to Org: {}", org.oid)</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> //need to delete/unassign this assignment (a)</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> }</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">}</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"></code></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </s:value></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </s:parameter></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </s:action></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </s:search></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"></s:executeScript>
</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Thanks in advance for any help and insight!</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">-Paul</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1pt;padding:3pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:'calibri' , sans-serif">From:</span></b><span style="font-size:11pt;font-family:'calibri' , sans-serif"> midPoint <midpoint-bounces@lists.evolveum.com>
<b>On Behalf Of </b>Paul Caskey via midPoint<br>
<b>Sent:</b> Thursday, July 13, 2023 5:32 PM<br>
<b>To:</b> martin.spanik@evolveum.com; midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Paul Caskey <pcaskey@internet2.edu><br>
<b>Subject:</b> Re: [midPoint] Apply a bulk action to a specific object type and subtype</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Thanks, Martin!</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">In our case, it’s the assignment itself that has the subtype, not the role (or org).</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Like this (taken from a user object):</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <assignment></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <subtype>groupRole</subtype></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <targetRef oid="c0053265-dd8f-496f-92bc-72209ee61eb4" relation="org:default" type="c:OrgType"/></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <activation></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> <effectiveStatus>enabled</effectiveStatus></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </activation></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </assignment></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">It seems like a bulk action should be able to do it. But I can’t figure it out yet. :)</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">Thanks again!</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif">-Paul</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1pt;padding:3pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:'calibri' , sans-serif">From:</span></b><span style="font-size:11pt;font-family:'calibri' , sans-serif"> midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank" rel="nofollow noopener noreferrer">midpoint-bounces@lists.evolveum.com</a>>
<b>On Behalf Of </b>Martin Spanik via midPoint<br>
<b>Sent:</b> Thursday, July 13, 2023 3:18 AM<br>
<b>To:</b> 'midPoint General Discussion' <<a href="mailto:midpoint@lists.evolveum.com" target="_blank" rel="nofollow noopener noreferrer">midpoint@lists.evolveum.com</a>><br>
<b>Cc:</b> Martin Spanik <<a href="mailto:martin.spanik@evolveum.com" target="_blank" rel="nofollow noopener noreferrer">martin.spanik@evolveum.com</a>><br>
<b>Subject:</b> Re: [midPoint] Apply a bulk action to a specific object type and subtype</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Hello Keith</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Yes it is possible. I prepared example of such task – you can use and tune it.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">It’s tested on 4.7 and 4.4. I don’t know which version you are using.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">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. </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Example of the role is attached too.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Let’s get to the task:</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">You filter the objects in <objects> element of task/activity/work/iteractiveScripting.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal" style="margin-left:0.5in;background:white"><span style="font-size:10pt;font-family:'courier new';color:#080808"><</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">objects</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
<</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">type</span><span style="font-size:10pt;font-family:'courier new';color:#080808">>RoleType</</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">type</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
<</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">query</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
<</span><span style="font-size:10pt;font-family:'courier new';color:#871094">q</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">:filter</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
<</span><span style="font-size:10pt;font-family:'courier new';color:#871094">q</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">:text</span><span style="font-size:10pt;font-family:'courier new';color:#080808">>subtype
= 'groupRole'</</span><span style="font-size:10pt;font-family:'courier new';color:#871094">q</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">:text</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
</</span><span style="font-size:10pt;font-family:'courier new';color:#871094">q</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">:filter</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
</</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">query</span><span style="font-size:10pt;font-family:'courier new';color:#080808">><br>
</</span><span style="font-size:10pt;font-family:'courier new';color:#0033b3">objects</span><span style="font-size:10pt;font-family:'courier new';color:#080808">></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Then you just run action on this set of objects. This action applies defined modification delta on the objects you selected in the filter.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">The example task removes the assigned service. Commented part modifies just description attribute - just as an example.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">I hope it will help you.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Best regards,</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d">Martin Spanik</span></b></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'calibri' , sans-serif;color:#1f497d">Senior Identity Engineer</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'calibri' , sans-serif;color:#1f497d">+421 905 334 507</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'calibri' , sans-serif;color:#1f497d"><a href="mailto:martin.spanik@evolveum.com" target="_blank" rel="nofollow noopener noreferrer">martin.spanik@evolveum.com</a></span><br data-mce-bogus="1"></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'calibri' , sans-serif;color:#1f497d"><a href="https://www.evolveum.com/" target="_blank" rel="nofollow noopener noreferrer">https://evolveum.com</a></span><br data-mce-bogus="1"></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1pt;padding:3pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:'calibri' , sans-serif">From:</span></b><span style="font-size:11pt;font-family:'calibri' , sans-serif"> midPoint [<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank" rel="nofollow noopener noreferrer">mailto:midpoint-bounces@lists.evolveum.com</a>]
<b>On Behalf Of </b>Keith Hazelton via midPoint<br>
<b>Sent:</b> streda 12. júla 2023 22:01<br>
<b>To:</b> <a href="mailto:midpoint@lists.evolveum.com" target="_blank" rel="nofollow noopener noreferrer">midpoint@lists.evolveum.com</a><br>
<b>Cc:</b> Keith Hazelton <<a href="mailto:hazelton@internet2.edu" target="_blank" rel="nofollow noopener noreferrer">hazelton@internet2.edu</a>><br>
<b>Subject:</b> [midPoint] Apply a bulk action to a specific object type and subtype</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span class="contentpasted1"><span style="font-size:11.5pt;font-family:'arial' , sans-serif;color:#1d1c1d;background:#f8f8f8">Is it possible to use a filter to perform a bulk action on a specific object type and
subtype?</span></span><span style="font-family:'calibri' , sans-serif;color:black"></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-family:'calibri' , sans-serif;color:black"> </span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-family:'calibri' , sans-serif;color:black">I know pt can be done, for example, for user subtypes, but we want to remove assignments for a specific subtype of group.</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:'calibri' , sans-serif;color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:'calibri' , sans-serif;color:black"> Thanks in advance, --Keith Hazelton</span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:'calibri' , sans-serif;color:black"> </span></p>
</div>
<div id="Signature">
<div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">_________________________</p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:hazelton@internet2.edu" target="_blank" rel="nofollow noopener noreferrer">hazelton@internet2.edu</a><br data-mce-bogus="1"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint<br></div></div></body></html>