on 11-26-2008 9:11 AM
Hi,
i have tried some codes to get windows login name in webDynpro app. but it is getting portal user id.
pls. find the code below..
String userName = System.getProperty("user.name");
wdComponentAPI.getMessageManager().reportSuccess("Username -- "+userName);
output - Username -- epdadm
I need the code how to read Windows login name from webDynpro app.
thanks.
Hi,
Pls. find UME Config. below..
Data Source : Back end(Database only...no LDAP Server database)
User Mapping : SAP Client
I couldn't find any user mapping for windows....
Is it possible to read Windows logged user name in webDynpro app..?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One thing you need to under stand is Webdynpro application is running on your server if you use properties you will get the details of the user at the server not at the client.
Is it possible to read Windows logged user name in webDynpro app..?
Depends, If you have LDAP configured to use the windows domain controller as the source for the users, you will be able to get it. But still your portal should use this.
Regards
Ayyapparaj
Hi Muthaiah,
This code is correct and it gives Windows user id only, because we are using the same code....
String user = System.getProperty("user.name");
wdComponentAPI.getMessageManager().reportSuccess("Window's Username: "+user);
Regards,
Lakshmi Prasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your code will probably not work because it's running on the server and not on the client.
What you can do:
Add attribute mapping to your UME so the Windows' user name will be available as UME property (assuming that the Windows' user id exists as property in your UME data source).
Read this guide: (pages 20-23)
You will be able to get the property by: user.getAttribute("<namespace>","<property name>")
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.