on 03-14-2005 5:25 PM
Hi
I am trying to achieve the following
To get the user information(user id,session Id etc) of the users who logged into portal from webdynpro application. My webdynpro runtime and portal runtime are different.
Things trying to do:
1. Write a portal service where i can get the user information of the person who logged into the portal.
2. Accessing this Portal service from webdynpro where from this portal service i get the user info.
Problems Facing: - I am not able to get the logged user information from the portal service.
Any help?
Please suggest me if there is any better approach for the same.
Regards
NagaKishore V
Hi Kishore,
you need to add <b>com.sap.security.api</b>jar file in your project, then you can get <b>IUser</b> object by
<b>IUser user = WDClientUser.getCurrentUser().getSAPUser();</b>
You can also check out the following links. They will help you.
<b>Regards,
<i>Sai Krishna Tadepalli.</i></b>
<b>PS: Plz do Reward points if it helps.</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi NagaKishore,
Pls check if the following code, that captures the user id from a portal in the webdynpro, helps.
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IUserAccount acct = user.getUserAccounts();
String strUserid = acct.getLogonUserid();
Regards
Noufal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.