Skip to Content
0
Former Member
Apr 16, 2008 at 11:35 PM

User Locking using Security API is not working

38 Views

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