From ITShop user is allowed to request for groups (Custom Target System):
- Admin
- Reader
- Owner
- USER
If user selects Admin, Reader or Owner then automatically request for USER should be created. We are doing this by PersonWantsOrg process on OrderGranted event
The problem is that when user selects i.e. Admin and Reader then IdM tries to create two requests for USER permission. Of course one of them fails but how to limit these tries. We've defined Process Task as ScriptExecSingle and in Pre-script for generating we are checking USER assignement with script but IdM still tries to execute this step multiple times (depending on how many groups were requested)