cancel
Showing results for 
Search instead for 
Did you mean: 

How to get userinformation by passing userid

Former Member
0 Kudos

Hi All,

I know how to get IUser Object for the current logged in user and get the user information like Job title, City, Time Zone, Country, Department etc..

The same details I want go get for a particular user (not current logged in user).

Hence I am trying to pass the userid but not getting the IUser object and getting only null always. The user I am passing exists and also tried passing the full LDAP Unique ID.

IUser user2 = (IUser)WDClientUser.getClientUser("ramesh.kotagiri");

Is there any other way using UME API to get the IUser object and the user details like country, department from it,  by passing a known userid.

Regards,

Ramesh.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Vlado
Advisor
Advisor
0 Kudos

Moving to .

Former Member
0 Kudos

Forgot to mention, I am trying this code in Webdynpro Java deployed on EP 7.3

Former Member
0 Kudos

Hi Ramesh,


UME API can be used to fetch the details of a particular user. for reference see the below sample code.

IUser user1 = UMFactory.getUserFactory.getUser( <Unique ID>);

PS: For using UME API, you MUST declare the dependency of UME API in DC properties of WDJ DC Component.