on 09-23-2008 2:45 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. You can.
Check this help link
http://help.sap.com/saphelp_sm32/helpdata/EN/95/72dba55fd9534fa3a479e84c4ae886/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.