<div dir="ltr">Hi Brad,<div><br></div><div>i had a similar problem and in the end removed the attribute values by bulk action. Delta with modificationType 'replace' did the trick. Hope it works for you.</div><div><br></div><div>arnost</div><div><br></div><div><div> <se:executeScript xmlns:s="<a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</a>"></div><div> <s:search></div><div> <s:type>c:UserType</s:type></div><div> <s:searchFilter></div><div> ...</div><div> </s:searchFilter></div><div><br></div><div> <s:action></div><div> <s:type>modify</s:type></div><div> <s:parameter></div><div> <s:name>delta</s:name></div><div> <value xsi:type="t:ObjectDeltaType"></div><div> <t:changeType>modify</t:changeType></div><div> <t:itemDelta></div><div> <t:modificationType>replace</t:modificationType></div><div> <t:path>extension/yourAttribute</t:path></div><div> <t:value></t:value></div><div> </t:itemDelta></div><div> </value></div><div> </s:parameter></div><div> <s:parameter></div><div> <s:name>raw</s:name></div><div> <value>true</value></div><div> </s:parameter></div><div> </s:action></div><div> </s:search></div><div> </se:executeScript></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-14 21:42 GMT+01:00 Brad Firestone <span dir="ltr"><<a href="mailto:bhotrock@gmail.com" target="_blank">bhotrock@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to figure out how to remove values from custom schema user attributes.<br>
<br>
When I first started with midPoint, I thought it would be a good idea to create some midPoint User attribute values as part of a read-only Active Directory Resource. That way when a midPoint user was created, they would automatically have certain attribute values.<br>
<br>
I've since figured out that isn't the best way to do this. I have removed these inbound mappings from my AD Resource. I will now handle the creation/removal of these attribute values through assignment/inducement.<br>
<br>
But I need to clean up these values so they are "blank". I've tried lots of different combinations of things in my User Template. I can change the values easily this way, but can't make it "blank". From what I see in the wiki, I would think that the following mapping in my User Template should work, but it doesn't.<br>
<br>
<mapping><br>
<name>Clear old myAttribute</name><br>
<authoritative>true</authorita<wbr>tive><br>
<tolerant>false</tolerant><br>
<strength>strong</strength><br>
<expression><br>
<value/><br>
</expression><br>
<target><br>
<c:path>$user/extension/myAttr<wbr>ibute</c:path><br>
</target><br>
</mapping><br>
<br>
Does anyone have an idea of how I can completely clear any values from this midPoint User attribute?<br>
Thanks!<br>
______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10.3846px"></p><table style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important"><tbody><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px solid gray!important"><p><span style="font-size:14px;font-weight:bold">Arnošt Starosta</span><br>solution architect<br><br>gsm: [+420] 603 794 932<br>e-mail: <a href="mailto:arnost.starosta@ami.cz" target="_blank">arnost.starosta@ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right:1px solid rgb(204,204,204);padding:0px;border-top:0px solid gray!important;border-bottom:0px solid gray!important;border-left:0px solid gray!important"> </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important"> </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px solid gray!important"><p>AMI Praha a.s.<br>Pláničkova 11<br>162 00 Praha 6<br>tel.: [+420] 274 783 239<br>web: <a href="http://www.ami.cz/" target="_blank">www.ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right:1px solid rgb(204,204,204);padding:0px;border-top:0px solid gray!important;border-bottom:0px solid gray!important;border-left:0px solid gray!important"> </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important"> </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px solid gray!important;width:116px"><p><img src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s." style="border:0px"></p></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px solid gray!important"><br><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management" target="_blank"><img src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI Praha a.s." style="border:0px;width:480px!important;height:82px!important"></a></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px solid gray!important"><br>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br><br></td></tr></tbody></table></div></div></div></div>
</div>