Hi,
I am developing a custom connector for IDM in Java. So far so good, but when i try to import a list of identities from an external source, only the first identity is actually imported and showing up as a user, after reconciliation.
Reconciliation result shows the correct total of successful imports.
...
for (UserDTO userRepresentation : list) {
ConnectorObjectBuilder builder = new ConnectorObjectBuilder();
builder.setUid(userRepresentation.getId());
builder.setName(userRepresentation.getUsername());
builder.addAttribute("email", userRepresentation.getEmail());
builder.addAttribute("firstname", userRepresentation.getFirstName());
builder.addAttribute("lastname", userRepresentation.getLastName());
builder.addAttribute(AttributeBuilder.buildEnabled(true));
for (ConnectorObject connectorObject : CollectionUtil.newSet(builder.build())) {
if (!handler.handle(connectorObject)) {
break;
}
}
}
...