[midPoint] Removing user from org

Pavol Mederly mederly at evolveum.com
Wed Jul 1 16:42:35 CEST 2015


Hello Roman,

yes, this seems like a bug. Please, could you create a jira issue for 
that? If possible, include a snippet of your configuration so that we 
could easily replicate it.

Thank you,
Pavol

> Hi Pavol,
> I am using last stable release 3.1.1.
>
> Problem is maybe found:
> When I use mapping in "central" template (configured in System 
> Configuration), adding and removing works well. When I use the same 
> mapping in template in resource, adding works well, but removing not. 
> It is probably bug?
>
> 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 16:23 Pavol Mederly napsal(a):
>> 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
>>
>>
>>
>> _______________________________________________
>> 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/af3cb8d5/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/af3cb8d5/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/af3cb8d5/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/af3cb8d5/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/af3cb8d5/attachment-0001.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/af3cb8d5/attachment-0002.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/af3cb8d5/attachment-0002.png>


More information about the midPoint mailing list