[midPoint] Template modification

Pavol Mederly mederly at evolveum.com
Fri Jan 26 16:17:21 CET 2018


Jan,

hmmm. I see. Anyway, please try to add "return null" and, if that would 
not help, invert "if" conditions. I am afraid I have no other idea at 
this moment ...

Pavol Mederly
Software developer
evolveum.com

On 26.01.2018 15:55, Jan Kaspar wrote:
> Hi Pavol,
>
> thank you for reply. I found this code posted by Ivan in 2016.
>
> http://lists.evolveum.com/pipermail/midpoint/2016-May/001884.html
>
> I used user template and change orgType to RoleType. It worked for me. 
> Imported users
> had assigned correct roles in midpoint. Thats the reason why I used 
> RoleType.
>
> The problem I have is in case that role (AD group) is not imported to 
> midpoint. That it fails.
> We have a lot of AD groups managed by applications and those shoudl 
> not be in midpoint.
>
> so that was the reason why i add condition
>
>  if (org != null)
>
> With that condition i tryed to solve situation when role is not found 
> in Midpoint.
>
> Jan
>
>
>
>
>
> _______________________________________________
> 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/20180126/0eab1c39/attachment.htm>


More information about the midPoint mailing list