on 04-29-2008 5:34 PM
Hi all,
I am trying to get the WD client id for other Portal users. (Portal and WD on same server)
IUser user = UMFactory.getUserFactory().getUser(uniqeID);
IWDClientUser wdUser1 = WDClientUser.getClientUser(user.getUniqueName());
IUser user1 = wdUser1.getSAPUser();
I have set the authentication of the wd app to true. I dont want the WD getCurrentUser(). I need to access the wd clientuser for other portal users.
This is because, I want to access the administrator managed custom attribute (which I am accessing using the getCurrentUser() , user1.getAttribute(...)...).
Please advise.
Thanks,
Anil.
(Points will be rewarded).
Hi anil,
How did you resolve the issue?
I too have the same doubt.
How to get all the users in the UME?
Thanks & Regards,
Lokesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have solved this myself.
Thanks,
Anil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi anil,
i am trying to get the user id for vendors but when i am writing the foll code in netweaver i am getting error
public void wdDoInit()
{
//@@begin wdDoInit()
String code = "";
String dept = "";
try {
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
code = user.getUniqueName();
dept = user.getDepartment();
} catch (Exception ex) {
ex.printStackTrace();
}
i am getting error IUser cannot be resolved or is not a type.
organise imports is also of no help,
please guide me hoe you resolved the problem.
nitesh
Sorry that the question is not clear.
I am trying to access the UME custom attribute for all the users in Webdynpro. There is only one Portal and there is no LDAP.
I used
IUser user = UMFactory.getUserFactory().getUser(uniqeID);
IWDClientUser wdUser1 = WDClientUser.getClientUser(user.getUniqueName());
IUser user1 = wdUser1.getSAPUser();
String attr= user1.getAttribute("<namespace>","<attribute name>");
But this is only giving me the custom attribute for WD logged in users. In WD, I want to get this attribute for other UME users as well.
if I use,
IUser user = UMFactory.getUserFactory().getUser(uniqeID);
String attr= user.getAttribute("<namespace>","<attribute name>");
I get null.
Please reply.
Thanks,
Anil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Will you bit clear on the requirement. If you want to get the all user (Portal and LDAP) from the Server in that case I can help you.
Please provide more input regarding your query.
Regards,
Deepak
Edited by: Deepak Arora on Apr 30, 2008 7:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is this "other portals"?
are they from sap?
Have you configured sso to those portals?
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.