cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Login User Details in WD Application

Former Member
0 Kudos

Hi

i have to develop an application to get the portal user and display that user id and his details int he web dynpro view.

so please let me know the code and procedure to achive this.

regards

mmukesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi ,

refer this thread.

/thread/152765 [original link is broken]

Regards,

gopi

Former Member
0 Kudos

Hi Mukesh,

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 "<b>com.sap.security.api"</b> jar file inorder use the above code.

Refer to the following thread for more information:

Regards,

Jhansi

Former Member
0 Kudos

Hi mukesh,

You have to use the com.sap.security.api.jar file to the library of your project, you can find it in in SAP\JDT\eclipse\plugins folder... You can get firstName, lastname, uid, uniqueid etc.

Then, get the IUser object using....

IUser user = WDClientUser.getCurrentUser().getSAPUser();

Hope this help you,

Vito