[midPoint] Removing user from org

Pavol Mederly mederly at evolveum.com
Wed Jul 1 16:23:58 CEST 2015


Hmmm. That's interesting. Which version of midPoint do you use? I'm 
using v3.2devel-829-g24f4945.

Best regards,
Pavol

On 1. 7. 2015 16:21, Roman Pudil - AMI Praha a.s. wrote:
> Hi Pavol,
> unfortunately, this code does not remove user assignment from org 
> (adding user to org works well).
>
> Regards
> Roman
>
> Roman Pudil
> solution architect
>
> gsm: [+420] 775 663 666
> e-mail: roman.pudil at ami.cz <mailto:roman.pudil at ami.cz>
>
> 			
>
> AMI Praha a.s.
> Pláničkova 11
> 162 00 Praha 6
> tel./fax: [+420] 274 783 239
> web: www.ami.cz <http://www.ami.cz>
>
> 			
>
> AMI Praha a.s.
>
>
> <http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>
> 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.
>
> Dne 1.7.2015 v 15:09 Pavol Mederly napsal(a):
>> Hello Roman,
>>
>> maybe I don't understand your question completely, but for me it 
>> works. This is a sample template that is able to add as well as 
>> remove Org assignment to/from a user based on his organizationalUnit 
>> attribute value:
>>
>>    <mapping>
>>       <source>
>> <c:path>$user/organizationalUnit</c:path>
>>       </source>
>>       <expression>
>>          <assignmentTargetSearch>
>> <targetType>OrgType</targetType>
>>             <filter>
>>                <q:equal>
>> <q:path>c:name</q:path>
>>                   <expression>
>>                      <script>
>>                         <code>
>>                            log.info('looking for {}', organizationalUnit)
>>                            return organizationalUnit
>>                         </code>
>>                      </script>
>>                   </expression>
>>                </q:equal>
>>             </filter>
>>          </assignmentTargetSearch>
>>       </expression>
>>       <target>
>>          <c:path>assignment</c:path>
>>       </target>
>>    </mapping>
>>
>> Best regards,
>> Pavol
>>
>>> Hi all,
>>> how to remove user from organization based on attribute value?
>>> User add to org in mapping template object works great (I am using 
>>> assignmentTargetSearch). How to remove user?
>>>
>>> Thanks!
>>> R. Pudil
>>> -- 
>>>
>>> Roman Pudil
>>> solution architect
>>>
>>> gsm: [+420] 775 663 666
>>> e-mail: roman.pudil at ami.cz <mailto:roman.pudil at ami.cz>
>>>
>>> 			
>>>
>>> AMI Praha a.s.
>>> Pláničkova 11
>>> 162 00 Praha 6
>>> tel./fax: [+420] 274 783 239
>>> web: www.ami.cz <http://www.ami.cz>
>>>
>>> 			
>>>
>>> AMI Praha a.s.
>>>
>>>
>>> <http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
>>>
>>> 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.
>>>
>>>
>>>
>>> _______________________________________________
>>> midPoint mailing list
>>> midPoint at lists.evolveum.com
>>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> 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/20150701/350ee72e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2900 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150701/350ee72e/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 21628 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150701/350ee72e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2900 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150701/350ee72e/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 21628 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150701/350ee72e/attachment-0001.png>


More information about the midPoint mailing list