cancel
Showing results for 
Search instead for 
Did you mean: 

How to access a Portal User Info from a J2EE application?

Former Member
0 Kudos

Hi,

I have deployed a j2ee application in portal and its running fine.

from that application i need to assign some roles to some users.i have the user id.

so my doubt is can i access the portal user info from this j2ee application?i have some servlets in the j2ee application....can i get the portal user info from this servlet?

plz help me

regards,

Visweswar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use following code for capturing information regarding the logged in User. For this you need to add following APIs:

*com.sap.security.api.jar *

com.sap.security.api.ep5.jar

IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();

IUser user = clientUser.getSAPUser();

UserId = user.getUniqueName();//This will give the logged in user Id. With the help of IUser user variable you can get the other information for logged in user.

Hope this may help you.

Nelly

Former Member
0 Kudos

Dear Nelly,

I have used the same code for accessing the logged user, but this application is not working on production server where as its working on quality server.

Please guide me what could be the reason for the same.

Thank you.

Former Member
0 Kudos

Hi,

Please check out this to get the portal user information from Java -

WdClientUser class/Interface to aciehve this.

Please check out these links on the same -

Regards

Lekha

Former Member
0 Kudos