cancel
Showing results for 
Search instead for 
Did you mean: 

WDClientUser.getClientUser IUser

Former Member
0 Kudos

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).

Accepted Solutions (0)

Answers (5)

Answers (5)

lokesh_kamana
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

I have solved this myself.

Thanks,

Anil.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

What is this "other portals"?

are they from sap?

Have you configured sso to those portals?

Regards

Ayyapparaj