Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with unlocking users locked in Portal

Former Member
0 Kudos

Hello experts,

We are using LDAP for user authintication. All of our users are set-up in LDAP. If the user failed to login his ID get locked in Portal UME.

We are working on developing a customized application to be given to our help desk agents to unlock users that are locked in Portal (UME). We are using the bellow code. The code run successfuly but the user is still locked in Portal. Is there anything we are missing that we need to add to our code? Please help.

IUserAccountFactory userAccountFactory =

UMFactory.getUserAccountFactory();

IUserAccount userAccount = null;

IUser user = null;

try {

user =UMFactory.getUserFactory().getUserByLogonID(

wdContext.currentContextElement().getUserID());

userAccount = user.getUserAccounts();

IUserAccount mUserAccount = null;

mUserAccount =

userAccountFactory.getMutableUserAccount(

userAccount.getUniqueID());

mUserAccount.setLocked(false, IUserAccount.LOCKED_NO);

mUserAccount.save();

mUserAccount.commit();

} catch (UMException ume) {

wdComponentAPI.getMessageManager().reportException

(ume.getMessage(), true);

}

Best regards,

Kais Barakat

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Wouldn't be easier to give them rights to the locked users iview under user management and make the iview available to them under their role?

3 REPLIES 3

Former Member
0 Kudos

Wouldn't be easier to give them rights to the locked users iview under user management and make the iview available to them under their role?

0 Kudos

No. That option was evaluated and it does not satisfy our requirements. The only option we had was to custom develop it.

Former Member
0 Kudos

Closed