cancel
Showing results for 
Search instead for 
Did you mean: 

How to access additional user profile fields?

RenaldWittwer
Contributor
0 Kudos

Hi,

I have created additional fields to the user profile (ume.admin.addattrs). That works fine!

How can I access them in a web dynpro application?

Thanks for help!

Best regards

Renald

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Try using the IUser interface for accessing the User profile. Check out following link for more information.

http://help.sap.com/saphelp_nw04/helpdata/en/80/45da9619d24b61bb869c31ef3b780a/content.htm

See if that helps. Let me know if you require some more information.

regards

ravi

Former Member
0 Kudos

Hope this link would help

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Renald,

How did you create the extra parameter "nameOfMyCustomizedField"?

I have a parameter included in the Microsoft Active Directory that I need to read in my Web Dynpro App, do you have any idea about it?

Thank you very much

RenaldWittwer
Contributor
0 Kudos

Hi Ravi,

Hi Noufal,

you both helped me very much. Thank you very much.

And for anybody who has the same problem, her my code:

IWDClientUser user = null;

IUser iuser = null;

String myvalue = null;

try {

user = WDClientUser.getCurrentUser();

}

catch (WDUMException e) {

// Jump on page authentification error

}

iuser = user.getSAPUser();

myvalue = iuser.getAttribute("com.sap.security.core.usermanagement", "nameOfMyCustomizedField")[0];

But first you have to add com.sap.security.api

Best regards

Renald