We’re facing an issue that might be obvious for advanced users but we didn’t manage to solve it.
For the context, we are testing this with a DB reset at the config importation. So this is like a fresh start.
After :
upload of the Directory template
Run complete all tasks on Directory Entity Types
Run complete all tasks on RH connector Entity Types
Run all tasks on Directory Ressource Types
All the HR Employees that have 2 positions (for 1 contract) are created as a Directory User with two (different) logins and 2 (different) emails.
We don’t want 2 logins neither 2 emails. One employee only have one unique email and one unique login.
We did some XML modifications that might have lead to this situation. Especially on the Directory User Workflows New.xml because the login and email C# creation rules where not satisfying.
Also on FulfillInternalWorkflow.json but it was just adding the “User” as a Navigation properties.
Do you know what workflow could lead to such behavior and how we could solve it ?
Is it normal that all users have 2 positions for 1 contract?
If it is not the case, you need to check your correlation rules for theResourceType “HR to Directory_UserRecord”.
You need also to make sure that the ‘PositionIdentifier’ is the same in the Directory and in the HR system.
Otherwise, if the multiple positions is intended, you need to check your “BuildUniqueValueAspect” for both Logins and Emails addresses where the PointCut is “Directory_User_CreateFromHR” or “Directory_User_UpdateFromHR”
You might need to add a control in the email/login generation rule.
Example:
Yes it’s normal to have two (or more) positions for 1 contract. Someone can move from one position to an other, or someone can have two positions at the same time (working on different site for example).
I checked the BuildUniqueValueAspect and as far as I understand the C# part, it looks the same, here for the login :