cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving the user LDAP data from portal

Former Member
0 Kudos

Hi,

We have EP Portal connected to LDAP for login authentication.

We need to retrieve the portal user information on Web Dynpro screen such as ID, username.

This shall be maintained in LDAP.

How do I retrive this info??

Thanks.

Regards,

Tanveer.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tanveer,

You can use the following code to get he portal login user:

IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();

IUser user = wdUser.getSAPUser();

String Username = user.getUniqueName();

Note: You need to add the "com.sap.security.api" jar file inorder use the above code.

Refer to the following thread for more information:

Regards,

Jhansi