[midPoint] Deleting custom schema attribute

Martin Lízner - AMI Praha a.s. martin.lizner at ami.cz
Mon Jan 23 14:20:51 CET 2017


Hi, this is my bulk script to remove value of indexed attribute:

<searchFilter>
      <q:not>
          <q:equal>
              <q:path>extension/position_name</q:path>
          </q:equal>
      </q:not>
    </searchFilter>
    <action>
        <type>modify</type>
        <parameter>
          <name>delta</name>
          <c:value>
            <itemDelta>
              <modificationType>replace</modificationType>
              <path>extension/position_name</path>
            </itemDelta>
          </c:value>
        </parameter>
    </action>

M.

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-01-23 13:59 GMT+01:00 Pálos Gustáv <gustav.palos at evolveum.com>:

> Hi Yanis,
>
> the best way is:
> 1) remove old values from each user,
> 2) remove this extended attribute from the schema.
>
> Best regards
>
> Gustav
>
> 2017-01-23 13:39 GMT+01:00 Rodrigo Yanis <ryanis at identicum.com>:
>
>> Hello everyone,
>>
>> We're currently in need to delete a custom set of attributes on the
>> MidPoint schema level, that have already been placed into users (valued).
>> We already tried by simply deleting the attributes' definition on the
>> custom attributes' schema file and, as it seem to be working properly, we
>> get a trace of warnings on the log indicating that certain attributes are
>> not found for certain users.
>>
>> What would be the proper way to delete a custom attribute in MidPoint? Is
>> there a best practice for this?
>>
>> Thanks in advance,
>>
>> *Rodrigo Yanis.*
>> Identicum S.A.
>> Jorge Newbery 3226
>> Tel: +54 (11) 4824-9971 <+54%2011%204824-9971>
>> ryanis at identicum.com
>> www.identicum.com
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>
>
> --
> Gustáv Pálos
> Identity Engineer
> evolveum.com
>
> _______________________________________________
> 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/20170123/13c43d42/attachment.htm>


More information about the midPoint mailing list