[midPoint] Tasks for users is failing when using User Filtering in Microsoft Entra ID (MS Graph) connector

BHATNAGAR Deshak deshak.bhatnagar at thalesgroup.com
Fri Nov 24 11:02:50 CET 2023


THALES GROUP LIMITED DISTRIBUTION to email recipients

Hello midPoint community,

We are facing the following issue as we are using the User filtering script created in groovy:



Tasks for users are not working for Microsoft Entra ID connector when used with user filtering script in synchronization condition.

The script works fine when manually importing the users from the accounts tab under resource.

When using import tasks for users no synchronization takes place. i.e. none of the users are imported. The users are just skipped.



Attached below is the script being used for filtering users based on group membership:

def groupsList = ["Group1", "Group2"]

def groupNames = shadow.getAssociation().collect {

it.getShadowRef().getTargetName().toString()?.toLowerCase()

}

return groupNames.any { it in groupsList.collect { it?.toLowerCase()}}



Can anyone please help?

Kind regards,
Deshak Bhatnagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231124/c4a6dca6/attachment.htm>


More information about the midPoint mailing list