cancel
Showing results for 
Search instead for 
Did you mean: 

Locked and Expired users in SAP EP

Former Member
0 Kudos

Hi,

I am iterating through a particular UserGroup in Portal using WebDynpro Java. I need to find out the locked and expired portal users using Webdynpro Java?

Please help me.

Thanks in advance!

Regards

Smita

Accepted Solutions (0)

Answers (2)

Answers (2)

siarhei_pisarenka3
Active Contributor
0 Kudos

IUserAccount account = UMFactory.getUserAccountFactory().getUserAccountByLogonId(<userLogonId>);

if (account.isPasswordLocked()) {

    // Locked due to number of falled attempts

}

if (account.isUserAccountLocked()) {

    // Locked by Administrator

}

SandipAgarwalla
Active Contributor
0 Kudos

Get all users of the groups...Iterate thru the list to see if any user account is locked or expired.

Convert IUser to IUserAccount..

Then use IuserAccount.isuseraccountlocked()

and to check expiry date, use iuseraccount.getvalidtodate()

sandip