<div dir="ltr">Hi, yes this is exactly what we were facing. We dedicated to work it out with custom matching rule, since we need it for other purposes as well. But hiding indirect roles in ri:ACTIVITYGROUPS (orgflag=C) on the connector may be more effective. Make sure its a connector configurable and please create a pull request on the master.<div><br></div><div>Btw, Im currently working on another SAP connector enhancement - that you can configure update error codes that are considered as nonfatal (e.g. company value missing in SAP and so on).</div><div><br></div><div>M.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">út 18. 1. 2022 v 16:05 odesílatel Emil.Militzer--- via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_1767178737527194872WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Hello together,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">we encountert a problem in our deployment with indirect ACTIVITYGROUPS in the SAP. We want to be non tolerant in the SAP ACTIVITYGROUPS Mapping.<br>
In the SAP itself we also have a complicted role hierarchy. The indirect roles will be calculated in the SAP after we assign a SAP ACTIVITYGROUP with child ACTIVITYGROUPs.<br>
During the next recompute midPoint tries to delete all indirect roles because we are not tolerant. This will have no effect in SAP but will be tried during every recompute.<br>
<br>
We tried to work around the issue by importing every indirect role into midpoint but now every indirect role will be mapped as direct in the SAP.<br>
<br>
In general indirect roles can be identified through the „ORG_FLAG“ in the ACTIVITYGROUPS XML field. We also tried targetsets but this is quite complicated and did not resolve the issue as wanted.<br>
<br>
We came to the conclusion that the clean way would be a configuration fort he SAP connector to hide all indirect ACTIVITYGROUPS. I implemented this in the SAP Connector and the results are quite promising.<br>
I think this change could benefit others and would like to contribute it to the SAP connector.<br>
<br>
<br>
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Did any of you had the same problem? Could you solve it in a way which we did not see? What do you think about a connector configuration idea and the contribution?<br>
<br>
I would be happy if i could get some feedback.<br>
<br>
Kind regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial,sans-serif">Emil<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>