IdentityAdapter idAdapter = context.newIdentityAdapter();
Users users = idAdapter.readUsers(filter,null);
for (User u : users.values()){
if(isAddAttributeRequest){
try{
idAdapter.addAttribute(u.getDistinguishedName(), attributeName, attributeValue);
}catch(AttributeInUseException aiue){
// TODO : do nothing if attribute exists ? or overwrite ?
}
}else {
idAdapter.removeAttribute(u.getDistinguishedName(), attributeName, attributeValue);