Skip to Content
author's profile photo Former Member
Former Member

Lock/Unlock user account

Greetings.

I am developing a Java applet that will chage user information, and the user account information as well. I am able to modify all fields in the user information and assign the user to roles as well. However, when I try to lock or unlock the user account, the call seems to hang. Can anyone assist? Below is what I am doing:

IUserAccountFactory userAccountFactory = UMFactory.getUserAccountFactory();

IUserAccount userAccount = userAccountFactory.getUserAccountByLogonId(myLogonId);

// to lock the account:

userAccount.setLocked(true,IUserAccount.LOCKED_BY_ADMIN);

// to unlock the account:

userAccount.setLocked(false,IUserAccount.LOCKED_NO);

Thanks,

Bassam H.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2004 at 12:34 PM

    Did you try passing LOCKED_BY_ADMIN, during unlocking? To me it seems logical to do this, as you locked it in that way as well...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.