cancel
Showing results for 
Search instead for 
Did you mean: 

WD Java Error -- method isPasswordDisabled() is undefined for the type IUserAccount

0 Kudos

Hi All,

Need your help.

I am creating a WD Java application to update users account details in portal i.e. disable password for list of users. I followed link Disable Password to achieve this. But my code is giving below error -- The method isPasswordDisabled() is undefined for the type IUserAccount.

Below is the code i have and i am using "com.sap.security.api.jar"

IUserFactory userFact = UMFactory.getUserFactory(); IUserAccountFactory uaf = UMFactory.getUserAccountFactory(); IUserAccount ua = uaf.getUserAccountByLogonId(user); ua = uaf.getMutableUserAccount(ua.getUniqueID()); if (ua != null) { if (!ua.isPasswordDisabled()) { ua.setPasswordDisabled(); ua.commit(); //response.write("<br>User " + user + " Password has been disabled: " + ua.isPasswordDisabled()); }



Thanks,

Satish

Accepted Solutions (1)

Accepted Solutions (1)

Followed this link Add external jar to webdynpro and added dependicies as below.

1) Add a build-time reference from you DC to com.sap.security.api.sda DC. The DC should already be in Local Development development configuration or in any other.

2) Add a run-time reference to com.sap.security.api.sda DC: Go to Webdynpro Project References (or in directly in ProjectProperties.wdproperties file) and add Library reference to com.sap.security.api.sda.

Thanks,
Satish

Answers (0)