Hi,
I´m Trying to use the API to lock users and I´m using this code:
IUserAccountFactory uaf = UMFactory.getUserAccountFactory();
IUserAccount ua = uaf.getUserAccountByLogonId(UserId);
IUserAccount uma = uaf.getMutableUserAccount(ua.getUniqueID());
uma.setLocked(LockUnLock,Reason);
uma.save();
uma.commit();
It is not sending any error but the user is not getting locked, I don´t know why is not working.
Thanx in Advanced and kind Regards.
Gerardo J